AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
OrganizationConfigRuleStatus.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/OrganizationRuleStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConfigService {
22namespace Model {
23
31 public:
32 AWS_CONFIGSERVICE_API OrganizationConfigRuleStatus() = default;
35 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetOrganizationConfigRuleName() const { return m_organizationConfigRuleName; }
42 inline bool OrganizationConfigRuleNameHasBeenSet() const { return m_organizationConfigRuleNameHasBeenSet; }
43 template <typename OrganizationConfigRuleNameT = Aws::String>
44 void SetOrganizationConfigRuleName(OrganizationConfigRuleNameT&& value) {
45 m_organizationConfigRuleNameHasBeenSet = true;
46 m_organizationConfigRuleName = std::forward<OrganizationConfigRuleNameT>(value);
47 }
48 template <typename OrganizationConfigRuleNameT = Aws::String>
49 OrganizationConfigRuleStatus& WithOrganizationConfigRuleName(OrganizationConfigRuleNameT&& value) {
50 SetOrganizationConfigRuleName(std::forward<OrganizationConfigRuleNameT>(value));
51 return *this;
52 }
54
56
84 inline OrganizationRuleStatus GetOrganizationRuleStatus() const { return m_organizationRuleStatus; }
85 inline bool OrganizationRuleStatusHasBeenSet() const { return m_organizationRuleStatusHasBeenSet; }
87 m_organizationRuleStatusHasBeenSet = true;
88 m_organizationRuleStatus = value;
89 }
92 return *this;
93 }
95
97
101 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
102 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
103 template <typename ErrorCodeT = Aws::String>
104 void SetErrorCode(ErrorCodeT&& value) {
105 m_errorCodeHasBeenSet = true;
106 m_errorCode = std::forward<ErrorCodeT>(value);
107 }
108 template <typename ErrorCodeT = Aws::String>
110 SetErrorCode(std::forward<ErrorCodeT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
121 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
122 template <typename ErrorMessageT = Aws::String>
123 void SetErrorMessage(ErrorMessageT&& value) {
124 m_errorMessageHasBeenSet = true;
125 m_errorMessage = std::forward<ErrorMessageT>(value);
126 }
127 template <typename ErrorMessageT = Aws::String>
129 SetErrorMessage(std::forward<ErrorMessageT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
139 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
140 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
141 void SetLastUpdateTime(LastUpdateTimeT&& value) {
142 m_lastUpdateTimeHasBeenSet = true;
143 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
144 }
145 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
147 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_organizationConfigRuleName;
153
155
156 Aws::String m_errorCode;
157
158 Aws::String m_errorMessage;
159
160 Aws::Utils::DateTime m_lastUpdateTime{};
161 bool m_organizationConfigRuleNameHasBeenSet = false;
162 bool m_organizationRuleStatusHasBeenSet = false;
163 bool m_errorCodeHasBeenSet = false;
164 bool m_errorMessageHasBeenSet = false;
165 bool m_lastUpdateTimeHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace ConfigService
170} // namespace Aws
AWS_CONFIGSERVICE_API OrganizationConfigRuleStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API OrganizationConfigRuleStatus()=default
OrganizationConfigRuleStatus & WithLastUpdateTime(LastUpdateTimeT &&value)
AWS_CONFIGSERVICE_API OrganizationConfigRuleStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationConfigRuleStatus & WithErrorCode(ErrorCodeT &&value)
OrganizationConfigRuleStatus & WithOrganizationRuleStatus(OrganizationRuleStatus value)
OrganizationConfigRuleStatus & WithErrorMessage(ErrorMessageT &&value)
OrganizationConfigRuleStatus & WithOrganizationConfigRuleName(OrganizationConfigRuleNameT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOrganizationConfigRuleName(OrganizationConfigRuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue