AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OrganizationConformancePackStatus.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/OrganizationResourceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONFIGSERVICE_API OrganizationConformancePackStatus() = default;
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetOrganizationConformancePackName() const { return m_organizationConformancePackName; }
48 inline bool OrganizationConformancePackNameHasBeenSet() const { return m_organizationConformancePackNameHasBeenSet; }
49 template<typename OrganizationConformancePackNameT = Aws::String>
50 void SetOrganizationConformancePackName(OrganizationConformancePackNameT&& value) { m_organizationConformancePackNameHasBeenSet = true; m_organizationConformancePackName = std::forward<OrganizationConformancePackNameT>(value); }
51 template<typename OrganizationConformancePackNameT = Aws::String>
52 OrganizationConformancePackStatus& WithOrganizationConformancePackName(OrganizationConformancePackNameT&& value) { SetOrganizationConformancePackName(std::forward<OrganizationConformancePackNameT>(value)); return *this;}
54
56
85 inline OrganizationResourceStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(OrganizationResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
90
92
96 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
97 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
98 template<typename ErrorCodeT = Aws::String>
99 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
100 template<typename ErrorCodeT = Aws::String>
101 OrganizationConformancePackStatus& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
103
105
109 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
110 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
111 template<typename ErrorMessageT = Aws::String>
112 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
113 template<typename ErrorMessageT = Aws::String>
114 OrganizationConformancePackStatus& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
122 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
123 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
124 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
125 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
126 OrganizationConformancePackStatus& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
128 private:
129
130 Aws::String m_organizationConformancePackName;
131 bool m_organizationConformancePackNameHasBeenSet = false;
132
134 bool m_statusHasBeenSet = false;
135
136 Aws::String m_errorCode;
137 bool m_errorCodeHasBeenSet = false;
138
139 Aws::String m_errorMessage;
140 bool m_errorMessageHasBeenSet = false;
141
142 Aws::Utils::DateTime m_lastUpdateTime{};
143 bool m_lastUpdateTimeHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ConfigService
148} // namespace Aws
AWS_CONFIGSERVICE_API OrganizationConformancePackStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationConformancePackStatus & WithStatus(OrganizationResourceStatus value)
OrganizationConformancePackStatus & WithLastUpdateTime(LastUpdateTimeT &&value)
OrganizationConformancePackStatus & WithErrorCode(ErrorCodeT &&value)
OrganizationConformancePackStatus & WithOrganizationConformancePackName(OrganizationConformancePackNameT &&value)
OrganizationConformancePackStatus & WithErrorMessage(ErrorMessageT &&value)
AWS_CONFIGSERVICE_API OrganizationConformancePackStatus()=default
AWS_CONFIGSERVICE_API OrganizationConformancePackStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOrganizationConformancePackName(OrganizationConformancePackNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue