AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetAccessGrantsLocationRequest.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 GetAccessGrantsLocationRequest() = 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 "GetAccessGrantsLocation"; }
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
65 inline const Aws::String& GetAccessGrantsLocationId() const { return m_accessGrantsLocationId; }
66 inline bool AccessGrantsLocationIdHasBeenSet() const { return m_accessGrantsLocationIdHasBeenSet; }
67 template <typename AccessGrantsLocationIdT = Aws::String>
68 void SetAccessGrantsLocationId(AccessGrantsLocationIdT&& value) {
69 m_accessGrantsLocationIdHasBeenSet = true;
70 m_accessGrantsLocationId = std::forward<AccessGrantsLocationIdT>(value);
71 }
72 template <typename AccessGrantsLocationIdT = Aws::String>
74 SetAccessGrantsLocationId(std::forward<AccessGrantsLocationIdT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_accountId;
80
81 Aws::String m_accessGrantsLocationId;
82 bool m_accountIdHasBeenSet = false;
83 bool m_accessGrantsLocationIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace S3Control
88} // namespace Aws
AWS_S3CONTROL_API Aws::String SerializePayload() const override
AWS_S3CONTROL_API GetAccessGrantsLocationRequest()=default
GetAccessGrantsLocationRequest & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
GetAccessGrantsLocationRequest & 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