AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnrollmentStatusResult.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/Status.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer
25{
26namespace Model
27{
29 {
30 public:
31 AWS_COMPUTEOPTIMIZER_API UpdateEnrollmentStatusResult();
34
35
37
40 inline const Status& GetStatus() const{ return m_status; }
41 inline void SetStatus(const Status& value) { m_status = value; }
42 inline void SetStatus(Status&& value) { m_status = std::move(value); }
43 inline UpdateEnrollmentStatusResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
44 inline UpdateEnrollmentStatusResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
46
48
53 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
54 inline void SetStatusReason(const Aws::String& value) { m_statusReason = value; }
55 inline void SetStatusReason(Aws::String&& value) { m_statusReason = std::move(value); }
56 inline void SetStatusReason(const char* value) { m_statusReason.assign(value); }
57 inline UpdateEnrollmentStatusResult& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
58 inline UpdateEnrollmentStatusResult& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
59 inline UpdateEnrollmentStatusResult& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline UpdateEnrollmentStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline UpdateEnrollmentStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline UpdateEnrollmentStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 Status m_status;
75
76 Aws::String m_statusReason;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace ComputeOptimizer
83} // namespace Aws
UpdateEnrollmentStatusResult & WithStatusReason(const Aws::String &value)
UpdateEnrollmentStatusResult & WithRequestId(const Aws::String &value)
UpdateEnrollmentStatusResult & WithRequestId(const char *value)
UpdateEnrollmentStatusResult & WithRequestId(Aws::String &&value)
UpdateEnrollmentStatusResult & WithStatusReason(const char *value)
UpdateEnrollmentStatusResult & WithStatusReason(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API UpdateEnrollmentStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateEnrollmentStatusResult & WithStatus(const Status &value)
AWS_COMPUTEOPTIMIZER_API UpdateEnrollmentStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue