AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAggregationAuthorizationRequest.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONFIGSERVICE_API PutAggregationAuthorizationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutAggregationAuthorization"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetAuthorizedAccountId() const { return m_authorizedAccountId; }
44 inline bool AuthorizedAccountIdHasBeenSet() const { return m_authorizedAccountIdHasBeenSet; }
45 template<typename AuthorizedAccountIdT = Aws::String>
46 void SetAuthorizedAccountId(AuthorizedAccountIdT&& value) { m_authorizedAccountIdHasBeenSet = true; m_authorizedAccountId = std::forward<AuthorizedAccountIdT>(value); }
47 template<typename AuthorizedAccountIdT = Aws::String>
48 PutAggregationAuthorizationRequest& WithAuthorizedAccountId(AuthorizedAccountIdT&& value) { SetAuthorizedAccountId(std::forward<AuthorizedAccountIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetAuthorizedAwsRegion() const { return m_authorizedAwsRegion; }
56 inline bool AuthorizedAwsRegionHasBeenSet() const { return m_authorizedAwsRegionHasBeenSet; }
57 template<typename AuthorizedAwsRegionT = Aws::String>
58 void SetAuthorizedAwsRegion(AuthorizedAwsRegionT&& value) { m_authorizedAwsRegionHasBeenSet = true; m_authorizedAwsRegion = std::forward<AuthorizedAwsRegionT>(value); }
59 template<typename AuthorizedAwsRegionT = Aws::String>
60 PutAggregationAuthorizationRequest& WithAuthorizedAwsRegion(AuthorizedAwsRegionT&& value) { SetAuthorizedAwsRegion(std::forward<AuthorizedAwsRegionT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Vector<Tag>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Vector<Tag>>
72 PutAggregationAuthorizationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsT = Tag>
74 PutAggregationAuthorizationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
76 private:
77
78 Aws::String m_authorizedAccountId;
79 bool m_authorizedAccountIdHasBeenSet = false;
80
81 Aws::String m_authorizedAwsRegion;
82 bool m_authorizedAwsRegionHasBeenSet = false;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_tagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ConfigService
90} // 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