AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAccessGrantsLocationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace S3Control {
15namespace Model {
16
20 public:
21 AWS_S3CONTROL_API UpdateAccessGrantsLocationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessGrantsLocation"; }
28
29 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
30
32
33 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
34
38 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
39
41
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
72 inline const Aws::String& GetAccessGrantsLocationId() const { return m_accessGrantsLocationId; }
73 inline bool AccessGrantsLocationIdHasBeenSet() const { return m_accessGrantsLocationIdHasBeenSet; }
74 template <typename AccessGrantsLocationIdT = Aws::String>
75 void SetAccessGrantsLocationId(AccessGrantsLocationIdT&& value) {
76 m_accessGrantsLocationIdHasBeenSet = true;
77 m_accessGrantsLocationId = std::forward<AccessGrantsLocationIdT>(value);
78 }
79 template <typename AccessGrantsLocationIdT = Aws::String>
81 SetAccessGrantsLocationId(std::forward<AccessGrantsLocationIdT>(value));
82 return *this;
83 }
85
87
92 inline const Aws::String& GetIAMRoleArn() const { return m_iAMRoleArn; }
93 inline bool IAMRoleArnHasBeenSet() const { return m_iAMRoleArnHasBeenSet; }
94 template <typename IAMRoleArnT = Aws::String>
95 void SetIAMRoleArn(IAMRoleArnT&& value) {
96 m_iAMRoleArnHasBeenSet = true;
97 m_iAMRoleArn = std::forward<IAMRoleArnT>(value);
98 }
99 template <typename IAMRoleArnT = Aws::String>
101 SetIAMRoleArn(std::forward<IAMRoleArnT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_accountId;
107
108 Aws::String m_accessGrantsLocationId;
109
110 Aws::String m_iAMRoleArn;
111 bool m_accountIdHasBeenSet = false;
112 bool m_accessGrantsLocationIdHasBeenSet = false;
113 bool m_iAMRoleArnHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace S3Control
118} // namespace Aws
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
UpdateAccessGrantsLocationRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
UpdateAccessGrantsLocationRequest & WithIAMRoleArn(IAMRoleArnT &&value)
UpdateAccessGrantsLocationRequest & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
AWS_S3CONTROL_API UpdateAccessGrantsLocationRequest()=default
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String