AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AccountAggregationSource.h>
13#include <aws/config/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ConfigService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutConfigurationAggregator"; }
35
36 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetConfigurationAggregatorName() const{ return m_configurationAggregatorName; }
46 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; }
47 inline void SetConfigurationAggregatorName(const Aws::String& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = value; }
48 inline void SetConfigurationAggregatorName(Aws::String&& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = std::move(value); }
49 inline void SetConfigurationAggregatorName(const char* value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName.assign(value); }
54
56
59 inline const Aws::Vector<AccountAggregationSource>& GetAccountAggregationSources() const{ return m_accountAggregationSources; }
60 inline bool AccountAggregationSourcesHasBeenSet() const { return m_accountAggregationSourcesHasBeenSet; }
61 inline void SetAccountAggregationSources(const Aws::Vector<AccountAggregationSource>& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources = value; }
62 inline void SetAccountAggregationSources(Aws::Vector<AccountAggregationSource>&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources = std::move(value); }
65 inline PutConfigurationAggregatorRequest& AddAccountAggregationSources(const AccountAggregationSource& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources.push_back(value); return *this; }
66 inline PutConfigurationAggregatorRequest& AddAccountAggregationSources(AccountAggregationSource&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources.push_back(std::move(value)); return *this; }
68
70
73 inline const OrganizationAggregationSource& GetOrganizationAggregationSource() const{ return m_organizationAggregationSource; }
74 inline bool OrganizationAggregationSourceHasBeenSet() const { return m_organizationAggregationSourceHasBeenSet; }
75 inline void SetOrganizationAggregationSource(const OrganizationAggregationSource& value) { m_organizationAggregationSourceHasBeenSet = true; m_organizationAggregationSource = value; }
76 inline void SetOrganizationAggregationSource(OrganizationAggregationSource&& value) { m_organizationAggregationSourceHasBeenSet = true; m_organizationAggregationSource = std::move(value); }
80
82
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline PutConfigurationAggregatorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 inline PutConfigurationAggregatorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
91 inline PutConfigurationAggregatorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
92 inline PutConfigurationAggregatorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_configurationAggregatorName;
97 bool m_configurationAggregatorNameHasBeenSet = false;
98
99 Aws::Vector<AccountAggregationSource> m_accountAggregationSources;
100 bool m_accountAggregationSourcesHasBeenSet = false;
101
102 OrganizationAggregationSource m_organizationAggregationSource;
103 bool m_organizationAggregationSourceHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ConfigService
111} // namespace Aws
PutConfigurationAggregatorRequest & AddTags(const Tag &value)
PutConfigurationAggregatorRequest & AddAccountAggregationSources(const AccountAggregationSource &value)
PutConfigurationAggregatorRequest & WithOrganizationAggregationSource(const OrganizationAggregationSource &value)
PutConfigurationAggregatorRequest & WithAccountAggregationSources(const Aws::Vector< AccountAggregationSource > &value)
PutConfigurationAggregatorRequest & WithAccountAggregationSources(Aws::Vector< AccountAggregationSource > &&value)
PutConfigurationAggregatorRequest & WithConfigurationAggregatorName(const char *value)
PutConfigurationAggregatorRequest & WithConfigurationAggregatorName(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutConfigurationAggregatorRequest & WithConfigurationAggregatorName(Aws::String &&value)
void SetAccountAggregationSources(Aws::Vector< AccountAggregationSource > &&value)
PutConfigurationAggregatorRequest & WithOrganizationAggregationSource(OrganizationAggregationSource &&value)
const OrganizationAggregationSource & GetOrganizationAggregationSource() const
void SetOrganizationAggregationSource(const OrganizationAggregationSource &value)
PutConfigurationAggregatorRequest & WithTags(Aws::Vector< Tag > &&value)
void SetAccountAggregationSources(const Aws::Vector< AccountAggregationSource > &value)
PutConfigurationAggregatorRequest & AddAccountAggregationSources(AccountAggregationSource &&value)
PutConfigurationAggregatorRequest & WithTags(const Aws::Vector< Tag > &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