AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAccessGrantsLocationRequest.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/s3control/S3ControlRequest.h>
10#include <aws/s3control/S3Control_EXPORTS.h>
11#include <aws/s3control/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace S3Control {
17namespace Model {
18
22 public:
23 AWS_S3CONTROL_API CreateAccessGrantsLocationRequest() = 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 "CreateAccessGrantsLocation"; }
30
31 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
32
34
35 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
36
40 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template <typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) {
50 m_accountIdHasBeenSet = true;
51 m_accountId = std::forward<AccountIdT>(value);
52 }
53 template <typename AccountIdT = Aws::String>
55 SetAccountId(std::forward<AccountIdT>(value));
56 return *this;
57 }
59
61
71 inline const Aws::String& GetLocationScope() const { return m_locationScope; }
72 inline bool LocationScopeHasBeenSet() const { return m_locationScopeHasBeenSet; }
73 template <typename LocationScopeT = Aws::String>
74 void SetLocationScope(LocationScopeT&& value) {
75 m_locationScopeHasBeenSet = true;
76 m_locationScope = std::forward<LocationScopeT>(value);
77 }
78 template <typename LocationScopeT = Aws::String>
80 SetLocationScope(std::forward<LocationScopeT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetIAMRoleArn() const { return m_iAMRoleArn; }
92 inline bool IAMRoleArnHasBeenSet() const { return m_iAMRoleArnHasBeenSet; }
93 template <typename IAMRoleArnT = Aws::String>
94 void SetIAMRoleArn(IAMRoleArnT&& value) {
95 m_iAMRoleArnHasBeenSet = true;
96 m_iAMRoleArn = std::forward<IAMRoleArnT>(value);
97 }
98 template <typename IAMRoleArnT = Aws::String>
100 SetIAMRoleArn(std::forward<IAMRoleArnT>(value));
101 return *this;
102 }
104
106
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Vector<Tag>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsT = Tag>
126 m_tagsHasBeenSet = true;
127 m_tags.emplace_back(std::forward<TagsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_accountId;
133
134 Aws::String m_locationScope;
135
136 Aws::String m_iAMRoleArn;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_accountIdHasBeenSet = false;
140 bool m_locationScopeHasBeenSet = false;
141 bool m_iAMRoleArnHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace S3Control
147} // namespace Aws
CreateAccessGrantsLocationRequest & WithLocationScope(LocationScopeT &&value)
AWS_S3CONTROL_API CreateAccessGrantsLocationRequest()=default
CreateAccessGrantsLocationRequest & WithIAMRoleArn(IAMRoleArnT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateAccessGrantsLocationRequest & WithTags(TagsT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
CreateAccessGrantsLocationRequest & WithAccountId(AccountIdT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
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