AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteAccessGrantRequest.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 DeleteAccessGrantRequest() = 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 "DeleteAccessGrant"; }
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
63 inline const Aws::String& GetAccessGrantId() const { return m_accessGrantId; }
64 inline bool AccessGrantIdHasBeenSet() const { return m_accessGrantIdHasBeenSet; }
65 template <typename AccessGrantIdT = Aws::String>
66 void SetAccessGrantId(AccessGrantIdT&& value) {
67 m_accessGrantIdHasBeenSet = true;
68 m_accessGrantId = std::forward<AccessGrantIdT>(value);
69 }
70 template <typename AccessGrantIdT = Aws::String>
72 SetAccessGrantId(std::forward<AccessGrantIdT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_accountId;
78
79 Aws::String m_accessGrantId;
80 bool m_accountIdHasBeenSet = false;
81 bool m_accessGrantIdHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace S3Control
86} // namespace Aws
AWS_S3CONTROL_API DeleteAccessGrantRequest()=default
DeleteAccessGrantRequest & WithAccountId(AccountIdT &&value)
DeleteAccessGrantRequest & WithAccessGrantId(AccessGrantIdT &&value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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