AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessGrantsInstanceRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3control/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace S3Control
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_S3CONTROL_API CreateAccessGrantsInstanceRequest() = 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 "CreateAccessGrantsInstance"; }
33
34 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
35
37
38 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
39
43 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
44
46
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template<typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
53 template<typename AccountIdT = Aws::String>
54 CreateAccessGrantsInstanceRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
56
58
69 inline const Aws::String& GetIdentityCenterArn() const { return m_identityCenterArn; }
70 inline bool IdentityCenterArnHasBeenSet() const { return m_identityCenterArnHasBeenSet; }
71 template<typename IdentityCenterArnT = Aws::String>
72 void SetIdentityCenterArn(IdentityCenterArnT&& value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn = std::forward<IdentityCenterArnT>(value); }
73 template<typename IdentityCenterArnT = Aws::String>
74 CreateAccessGrantsInstanceRequest& WithIdentityCenterArn(IdentityCenterArnT&& value) { SetIdentityCenterArn(std::forward<IdentityCenterArnT>(value)); return *this;}
76
78
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 CreateAccessGrantsInstanceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 CreateAccessGrantsInstanceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93 private:
94
95 Aws::String m_accountId;
96 bool m_accountIdHasBeenSet = false;
97
98 Aws::String m_identityCenterArn;
99 bool m_identityCenterArnHasBeenSet = false;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3Control
107} // 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 & AddTags(TagsT &&value)
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