AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetServiceSettingsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/OrganizationConfiguration.h>
12#include <aws/license-manager/model/ServiceStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LicenseManager {
26namespace Model {
28 public:
29 AWS_LICENSEMANAGER_API GetServiceSettingsResult() = default;
32
34
38 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
39 template <typename S3BucketArnT = Aws::String>
40 void SetS3BucketArn(S3BucketArnT&& value) {
41 m_s3BucketArnHasBeenSet = true;
42 m_s3BucketArn = std::forward<S3BucketArnT>(value);
43 }
44 template <typename S3BucketArnT = Aws::String>
46 SetS3BucketArn(std::forward<S3BucketArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
56 template <typename SnsTopicArnT = Aws::String>
57 void SetSnsTopicArn(SnsTopicArnT&& value) {
58 m_snsTopicArnHasBeenSet = true;
59 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
60 }
61 template <typename SnsTopicArnT = Aws::String>
63 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
64 return *this;
65 }
67
69
73 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
74 template <typename OrganizationConfigurationT = OrganizationConfiguration>
75 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
76 m_organizationConfigurationHasBeenSet = true;
77 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
78 }
79 template <typename OrganizationConfigurationT = OrganizationConfiguration>
80 GetServiceSettingsResult& WithOrganizationConfiguration(OrganizationConfigurationT&& value) {
81 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
82 return *this;
83 }
85
87
90 inline bool GetEnableCrossAccountsDiscovery() const { return m_enableCrossAccountsDiscovery; }
91 inline void SetEnableCrossAccountsDiscovery(bool value) {
92 m_enableCrossAccountsDiscoveryHasBeenSet = true;
93 m_enableCrossAccountsDiscovery = value;
94 }
97 return *this;
98 }
100
102
106 inline const Aws::String& GetLicenseManagerResourceShareArn() const { return m_licenseManagerResourceShareArn; }
107 template <typename LicenseManagerResourceShareArnT = Aws::String>
108 void SetLicenseManagerResourceShareArn(LicenseManagerResourceShareArnT&& value) {
109 m_licenseManagerResourceShareArnHasBeenSet = true;
110 m_licenseManagerResourceShareArn = std::forward<LicenseManagerResourceShareArnT>(value);
111 }
112 template <typename LicenseManagerResourceShareArnT = Aws::String>
113 GetServiceSettingsResult& WithLicenseManagerResourceShareArn(LicenseManagerResourceShareArnT&& value) {
114 SetLicenseManagerResourceShareArn(std::forward<LicenseManagerResourceShareArnT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetCrossRegionDiscoveryHomeRegion() const { return m_crossRegionDiscoveryHomeRegion; }
124 template <typename CrossRegionDiscoveryHomeRegionT = Aws::String>
125 void SetCrossRegionDiscoveryHomeRegion(CrossRegionDiscoveryHomeRegionT&& value) {
126 m_crossRegionDiscoveryHomeRegionHasBeenSet = true;
127 m_crossRegionDiscoveryHomeRegion = std::forward<CrossRegionDiscoveryHomeRegionT>(value);
128 }
129 template <typename CrossRegionDiscoveryHomeRegionT = Aws::String>
130 GetServiceSettingsResult& WithCrossRegionDiscoveryHomeRegion(CrossRegionDiscoveryHomeRegionT&& value) {
131 SetCrossRegionDiscoveryHomeRegion(std::forward<CrossRegionDiscoveryHomeRegionT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<Aws::String>& GetCrossRegionDiscoverySourceRegions() const { return m_crossRegionDiscoverySourceRegions; }
141 template <typename CrossRegionDiscoverySourceRegionsT = Aws::Vector<Aws::String>>
142 void SetCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT&& value) {
143 m_crossRegionDiscoverySourceRegionsHasBeenSet = true;
144 m_crossRegionDiscoverySourceRegions = std::forward<CrossRegionDiscoverySourceRegionsT>(value);
145 }
146 template <typename CrossRegionDiscoverySourceRegionsT = Aws::Vector<Aws::String>>
147 GetServiceSettingsResult& WithCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT&& value) {
148 SetCrossRegionDiscoverySourceRegions(std::forward<CrossRegionDiscoverySourceRegionsT>(value));
149 return *this;
150 }
151 template <typename CrossRegionDiscoverySourceRegionsT = Aws::String>
152 GetServiceSettingsResult& AddCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT&& value) {
153 m_crossRegionDiscoverySourceRegionsHasBeenSet = true;
154 m_crossRegionDiscoverySourceRegions.emplace_back(std::forward<CrossRegionDiscoverySourceRegionsT>(value));
155 return *this;
156 }
158
160
163 inline const ServiceStatus& GetServiceStatus() const { return m_serviceStatus; }
164 template <typename ServiceStatusT = ServiceStatus>
165 void SetServiceStatus(ServiceStatusT&& value) {
166 m_serviceStatusHasBeenSet = true;
167 m_serviceStatus = std::forward<ServiceStatusT>(value);
168 }
169 template <typename ServiceStatusT = ServiceStatus>
171 SetServiceStatus(std::forward<ServiceStatusT>(value));
172 return *this;
173 }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template <typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) {
181 m_requestIdHasBeenSet = true;
182 m_requestId = std::forward<RequestIdT>(value);
183 }
184 template <typename RequestIdT = Aws::String>
186 SetRequestId(std::forward<RequestIdT>(value));
187 return *this;
188 }
190 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
191
192 private:
193 Aws::String m_s3BucketArn;
194
195 Aws::String m_snsTopicArn;
196
197 OrganizationConfiguration m_organizationConfiguration;
198
199 bool m_enableCrossAccountsDiscovery{false};
200
201 Aws::String m_licenseManagerResourceShareArn;
202
203 Aws::String m_crossRegionDiscoveryHomeRegion;
204
205 Aws::Vector<Aws::String> m_crossRegionDiscoverySourceRegions;
206
207 ServiceStatus m_serviceStatus;
208
209 Aws::String m_requestId;
210 Aws::Http::HttpResponseCode m_HttpResponseCode;
211 bool m_s3BucketArnHasBeenSet = false;
212 bool m_snsTopicArnHasBeenSet = false;
213 bool m_organizationConfigurationHasBeenSet = false;
214 bool m_enableCrossAccountsDiscoveryHasBeenSet = false;
215 bool m_licenseManagerResourceShareArnHasBeenSet = false;
216 bool m_crossRegionDiscoveryHomeRegionHasBeenSet = false;
217 bool m_crossRegionDiscoverySourceRegionsHasBeenSet = false;
218 bool m_serviceStatusHasBeenSet = false;
219 bool m_requestIdHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace LicenseManager
224} // namespace Aws
GetServiceSettingsResult & WithRequestId(RequestIdT &&value)
const OrganizationConfiguration & GetOrganizationConfiguration() const
GetServiceSettingsResult & WithCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT &&value)
GetServiceSettingsResult & AddCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT &&value)
GetServiceSettingsResult & WithLicenseManagerResourceShareArn(LicenseManagerResourceShareArnT &&value)
GetServiceSettingsResult & WithEnableCrossAccountsDiscovery(bool value)
GetServiceSettingsResult & WithSnsTopicArn(SnsTopicArnT &&value)
GetServiceSettingsResult & WithCrossRegionDiscoveryHomeRegion(CrossRegionDiscoveryHomeRegionT &&value)
void SetOrganizationConfiguration(OrganizationConfigurationT &&value)
GetServiceSettingsResult & WithS3BucketArn(S3BucketArnT &&value)
void SetLicenseManagerResourceShareArn(LicenseManagerResourceShareArnT &&value)
AWS_LICENSEMANAGER_API GetServiceSettingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetServiceSettingsResult & WithServiceStatus(ServiceStatusT &&value)
void SetCrossRegionDiscoverySourceRegions(CrossRegionDiscoverySourceRegionsT &&value)
const Aws::Vector< Aws::String > & GetCrossRegionDiscoverySourceRegions() const
GetServiceSettingsResult & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
void SetCrossRegionDiscoveryHomeRegion(CrossRegionDiscoveryHomeRegionT &&value)
AWS_LICENSEMANAGER_API GetServiceSettingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LICENSEMANAGER_API GetServiceSettingsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue