AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAccessGrantsInstanceRequest.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 CreateAccessGrantsInstanceRequest() = 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 "CreateAccessGrantsInstance"; }
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
72 inline const Aws::String& GetIdentityCenterArn() const { return m_identityCenterArn; }
73 inline bool IdentityCenterArnHasBeenSet() const { return m_identityCenterArnHasBeenSet; }
74 template <typename IdentityCenterArnT = Aws::String>
75 void SetIdentityCenterArn(IdentityCenterArnT&& value) {
76 m_identityCenterArnHasBeenSet = true;
77 m_identityCenterArn = std::forward<IdentityCenterArnT>(value);
78 }
79 template <typename IdentityCenterArnT = Aws::String>
81 SetIdentityCenterArn(std::forward<IdentityCenterArnT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Vector<Tag>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsT = Tag>
107 m_tagsHasBeenSet = true;
108 m_tags.emplace_back(std::forward<TagsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_accountId;
114
115 Aws::String m_identityCenterArn;
116
117 Aws::Vector<Tag> m_tags;
118 bool m_accountIdHasBeenSet = false;
119 bool m_identityCenterArnHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace S3Control
125} // namespace Aws
CreateAccessGrantsInstanceRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API CreateAccessGrantsInstanceRequest()=default
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateAccessGrantsInstanceRequest & WithIdentityCenterArn(IdentityCenterArnT &&value)
CreateAccessGrantsInstanceRequest & WithTags(TagsT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
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