AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateServiceSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/OrganizationConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LicenseManager {
17namespace Model {
18
22 public:
23 AWS_LICENSEMANAGER_API UpdateServiceSettingsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceSettings"; }
30
31 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetS3BucketArn() const { return m_s3BucketArn; }
41 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
42 template <typename S3BucketArnT = Aws::String>
43 void SetS3BucketArn(S3BucketArnT&& value) {
44 m_s3BucketArnHasBeenSet = true;
45 m_s3BucketArn = std::forward<S3BucketArnT>(value);
46 }
47 template <typename S3BucketArnT = Aws::String>
49 SetS3BucketArn(std::forward<S3BucketArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
60 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
61 template <typename SnsTopicArnT = Aws::String>
62 void SetSnsTopicArn(SnsTopicArnT&& value) {
63 m_snsTopicArnHasBeenSet = true;
64 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
65 }
66 template <typename SnsTopicArnT = Aws::String>
68 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
69 return *this;
70 }
72
74
77 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
78 inline bool OrganizationConfigurationHasBeenSet() const { return m_organizationConfigurationHasBeenSet; }
79 template <typename OrganizationConfigurationT = OrganizationConfiguration>
80 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
81 m_organizationConfigurationHasBeenSet = true;
82 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
83 }
84 template <typename OrganizationConfigurationT = OrganizationConfiguration>
85 UpdateServiceSettingsRequest& WithOrganizationConfiguration(OrganizationConfigurationT&& value) {
86 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
87 return *this;
88 }
90
92
95 inline bool GetEnableCrossAccountsDiscovery() const { return m_enableCrossAccountsDiscovery; }
96 inline bool EnableCrossAccountsDiscoveryHasBeenSet() const { return m_enableCrossAccountsDiscoveryHasBeenSet; }
97 inline void SetEnableCrossAccountsDiscovery(bool value) {
98 m_enableCrossAccountsDiscoveryHasBeenSet = true;
99 m_enableCrossAccountsDiscovery = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetEnabledDiscoverySourceRegions() const { return m_enabledDiscoverySourceRegions; }
112 inline bool EnabledDiscoverySourceRegionsHasBeenSet() const { return m_enabledDiscoverySourceRegionsHasBeenSet; }
113 template <typename EnabledDiscoverySourceRegionsT = Aws::Vector<Aws::String>>
114 void SetEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT&& value) {
115 m_enabledDiscoverySourceRegionsHasBeenSet = true;
116 m_enabledDiscoverySourceRegions = std::forward<EnabledDiscoverySourceRegionsT>(value);
117 }
118 template <typename EnabledDiscoverySourceRegionsT = Aws::Vector<Aws::String>>
119 UpdateServiceSettingsRequest& WithEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT&& value) {
120 SetEnabledDiscoverySourceRegions(std::forward<EnabledDiscoverySourceRegionsT>(value));
121 return *this;
122 }
123 template <typename EnabledDiscoverySourceRegionsT = Aws::String>
124 UpdateServiceSettingsRequest& AddEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT&& value) {
125 m_enabledDiscoverySourceRegionsHasBeenSet = true;
126 m_enabledDiscoverySourceRegions.emplace_back(std::forward<EnabledDiscoverySourceRegionsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_s3BucketArn;
132
133 Aws::String m_snsTopicArn;
134
135 OrganizationConfiguration m_organizationConfiguration;
136
137 bool m_enableCrossAccountsDiscovery{false};
138
139 Aws::Vector<Aws::String> m_enabledDiscoverySourceRegions;
140 bool m_s3BucketArnHasBeenSet = false;
141 bool m_snsTopicArnHasBeenSet = false;
142 bool m_organizationConfigurationHasBeenSet = false;
143 bool m_enableCrossAccountsDiscoveryHasBeenSet = false;
144 bool m_enabledDiscoverySourceRegionsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace LicenseManager
149} // namespace Aws
void SetOrganizationConfiguration(OrganizationConfigurationT &&value)
const Aws::Vector< Aws::String > & GetEnabledDiscoverySourceRegions() const
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
UpdateServiceSettingsRequest & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
const OrganizationConfiguration & GetOrganizationConfiguration() const
void SetEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT &&value)
UpdateServiceSettingsRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateServiceSettingsRequest & AddEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT &&value)
AWS_LICENSEMANAGER_API UpdateServiceSettingsRequest()=default
UpdateServiceSettingsRequest & WithEnableCrossAccountsDiscovery(bool value)
UpdateServiceSettingsRequest & WithS3BucketArn(S3BucketArnT &&value)
UpdateServiceSettingsRequest & WithEnabledDiscoverySourceRegions(EnabledDiscoverySourceRegionsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector