AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutAggregationAuthorizationRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
22 public:
23 AWS_CONFIGSERVICE_API PutAggregationAuthorizationRequest() = 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 "PutAggregationAuthorization"; }
30
31 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetAuthorizedAccountId() const { return m_authorizedAccountId; }
40 inline bool AuthorizedAccountIdHasBeenSet() const { return m_authorizedAccountIdHasBeenSet; }
41 template <typename AuthorizedAccountIdT = Aws::String>
42 void SetAuthorizedAccountId(AuthorizedAccountIdT&& value) {
43 m_authorizedAccountIdHasBeenSet = true;
44 m_authorizedAccountId = std::forward<AuthorizedAccountIdT>(value);
45 }
46 template <typename AuthorizedAccountIdT = Aws::String>
48 SetAuthorizedAccountId(std::forward<AuthorizedAccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAuthorizedAwsRegion() const { return m_authorizedAwsRegion; }
58 inline bool AuthorizedAwsRegionHasBeenSet() const { return m_authorizedAwsRegionHasBeenSet; }
59 template <typename AuthorizedAwsRegionT = Aws::String>
60 void SetAuthorizedAwsRegion(AuthorizedAwsRegionT&& value) {
61 m_authorizedAwsRegionHasBeenSet = true;
62 m_authorizedAwsRegion = std::forward<AuthorizedAwsRegionT>(value);
63 }
64 template <typename AuthorizedAwsRegionT = Aws::String>
66 SetAuthorizedAwsRegion(std::forward<AuthorizedAwsRegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Vector<Tag>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Vector<Tag>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsT = Tag>
89 m_tagsHasBeenSet = true;
90 m_tags.emplace_back(std::forward<TagsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_authorizedAccountId;
96
97 Aws::String m_authorizedAwsRegion;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_authorizedAccountIdHasBeenSet = false;
101 bool m_authorizedAwsRegionHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ConfigService
107} // namespace Aws
PutAggregationAuthorizationRequest & WithAuthorizedAwsRegion(AuthorizedAwsRegionT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAggregationAuthorizationRequest & WithAuthorizedAccountId(AuthorizedAccountIdT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API PutAggregationAuthorizationRequest()=default
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