AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutConfigurationAggregatorRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/OrganizationAggregationSource.h>
12#include <aws/config/model/AggregatorFilters.h>
13#include <aws/config/model/AccountAggregationSource.h>
14#include <aws/config/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ConfigService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutConfigurationAggregator"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetConfigurationAggregatorName() const { return m_configurationAggregatorName; }
47 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; }
48 template<typename ConfigurationAggregatorNameT = Aws::String>
49 void SetConfigurationAggregatorName(ConfigurationAggregatorNameT&& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = std::forward<ConfigurationAggregatorNameT>(value); }
50 template<typename ConfigurationAggregatorNameT = Aws::String>
51 PutConfigurationAggregatorRequest& WithConfigurationAggregatorName(ConfigurationAggregatorNameT&& value) { SetConfigurationAggregatorName(std::forward<ConfigurationAggregatorNameT>(value)); return *this;}
53
55
58 inline const Aws::Vector<AccountAggregationSource>& GetAccountAggregationSources() const { return m_accountAggregationSources; }
59 inline bool AccountAggregationSourcesHasBeenSet() const { return m_accountAggregationSourcesHasBeenSet; }
60 template<typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
61 void SetAccountAggregationSources(AccountAggregationSourcesT&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources = std::forward<AccountAggregationSourcesT>(value); }
62 template<typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
63 PutConfigurationAggregatorRequest& WithAccountAggregationSources(AccountAggregationSourcesT&& value) { SetAccountAggregationSources(std::forward<AccountAggregationSourcesT>(value)); return *this;}
64 template<typename AccountAggregationSourcesT = AccountAggregationSource>
65 PutConfigurationAggregatorRequest& AddAccountAggregationSources(AccountAggregationSourcesT&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources.emplace_back(std::forward<AccountAggregationSourcesT>(value)); return *this; }
67
69
72 inline const OrganizationAggregationSource& GetOrganizationAggregationSource() const { return m_organizationAggregationSource; }
73 inline bool OrganizationAggregationSourceHasBeenSet() const { return m_organizationAggregationSourceHasBeenSet; }
74 template<typename OrganizationAggregationSourceT = OrganizationAggregationSource>
75 void SetOrganizationAggregationSource(OrganizationAggregationSourceT&& value) { m_organizationAggregationSourceHasBeenSet = true; m_organizationAggregationSource = std::forward<OrganizationAggregationSourceT>(value); }
76 template<typename OrganizationAggregationSourceT = OrganizationAggregationSource>
77 PutConfigurationAggregatorRequest& WithOrganizationAggregationSource(OrganizationAggregationSourceT&& value) { SetOrganizationAggregationSource(std::forward<OrganizationAggregationSourceT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 PutConfigurationAggregatorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 PutConfigurationAggregatorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93
95
99 inline const AggregatorFilters& GetAggregatorFilters() const { return m_aggregatorFilters; }
100 inline bool AggregatorFiltersHasBeenSet() const { return m_aggregatorFiltersHasBeenSet; }
101 template<typename AggregatorFiltersT = AggregatorFilters>
102 void SetAggregatorFilters(AggregatorFiltersT&& value) { m_aggregatorFiltersHasBeenSet = true; m_aggregatorFilters = std::forward<AggregatorFiltersT>(value); }
103 template<typename AggregatorFiltersT = AggregatorFilters>
104 PutConfigurationAggregatorRequest& WithAggregatorFilters(AggregatorFiltersT&& value) { SetAggregatorFilters(std::forward<AggregatorFiltersT>(value)); return *this;}
106 private:
107
108 Aws::String m_configurationAggregatorName;
109 bool m_configurationAggregatorNameHasBeenSet = false;
110
111 Aws::Vector<AccountAggregationSource> m_accountAggregationSources;
112 bool m_accountAggregationSourcesHasBeenSet = false;
113
114 OrganizationAggregationSource m_organizationAggregationSource;
115 bool m_organizationAggregationSourceHasBeenSet = false;
116
117 Aws::Vector<Tag> m_tags;
118 bool m_tagsHasBeenSet = false;
119
120 AggregatorFilters m_aggregatorFilters;
121 bool m_aggregatorFiltersHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ConfigService
126} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutConfigurationAggregatorRequest & WithOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest()=default
const OrganizationAggregationSource & GetOrganizationAggregationSource() const
void SetOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
PutConfigurationAggregatorRequest & AddAccountAggregationSources(AccountAggregationSourcesT &&value)
PutConfigurationAggregatorRequest & WithConfigurationAggregatorName(ConfigurationAggregatorNameT &&value)
PutConfigurationAggregatorRequest & WithAggregatorFilters(AggregatorFiltersT &&value)
PutConfigurationAggregatorRequest & WithAccountAggregationSources(AccountAggregationSourcesT &&value)
const Aws::Vector< AccountAggregationSource > & GetAccountAggregationSources() const
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