AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
52 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
53 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline CreateAccessGrantsInstanceRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
55 inline CreateAccessGrantsInstanceRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
56 inline CreateAccessGrantsInstanceRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
58
60
71 inline const Aws::String& GetIdentityCenterArn() const{ return m_identityCenterArn; }
72 inline bool IdentityCenterArnHasBeenSet() const { return m_identityCenterArnHasBeenSet; }
73 inline void SetIdentityCenterArn(const Aws::String& value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn = value; }
74 inline void SetIdentityCenterArn(Aws::String&& value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn = std::move(value); }
75 inline void SetIdentityCenterArn(const char* value) { m_identityCenterArnHasBeenSet = true; m_identityCenterArn.assign(value); }
78 inline CreateAccessGrantsInstanceRequest& WithIdentityCenterArn(const char* value) { SetIdentityCenterArn(value); return *this;}
80
82
88 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateAccessGrantsInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 inline CreateAccessGrantsInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateAccessGrantsInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
95 inline CreateAccessGrantsInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_accountId;
100 bool m_accountIdHasBeenSet = false;
101
102 Aws::String m_identityCenterArn;
103 bool m_identityCenterArnHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace S3Control
111} // namespace Aws
CreateAccessGrantsInstanceRequest & WithAccountId(const Aws::String &value)
CreateAccessGrantsInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAccessGrantsInstanceRequest & WithAccountId(const char *value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessGrantsInstanceRequest & WithIdentityCenterArn(Aws::String &&value)
CreateAccessGrantsInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateAccessGrantsInstanceRequest & WithAccountId(Aws::String &&value)
CreateAccessGrantsInstanceRequest & WithIdentityCenterArn(const char *value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
CreateAccessGrantsInstanceRequest & AddTags(const Tag &value)
CreateAccessGrantsInstanceRequest & WithIdentityCenterArn(const Aws::String &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