AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RevokeGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/kms/KMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace KMS {
15namespace Model {
16
20 public:
21 AWS_KMS_API RevokeGrantRequest() = 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 "RevokeGrant"; }
28
29 AWS_KMS_API Aws::String SerializePayload() const override;
30
32
34
45 inline const Aws::String& GetKeyId() const { return m_keyId; }
46 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
47 template <typename KeyIdT = Aws::String>
48 void SetKeyId(KeyIdT&& value) {
49 m_keyIdHasBeenSet = true;
50 m_keyId = std::forward<KeyIdT>(value);
51 }
52 template <typename KeyIdT = Aws::String>
53 RevokeGrantRequest& WithKeyId(KeyIdT&& value) {
54 SetKeyId(std::forward<KeyIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetGrantId() const { return m_grantId; }
65 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
66 template <typename GrantIdT = Aws::String>
67 void SetGrantId(GrantIdT&& value) {
68 m_grantIdHasBeenSet = true;
69 m_grantId = std::forward<GrantIdT>(value);
70 }
71 template <typename GrantIdT = Aws::String>
72 RevokeGrantRequest& WithGrantId(GrantIdT&& value) {
73 SetGrantId(std::forward<GrantIdT>(value));
74 return *this;
75 }
77
79
85 inline bool GetDryRun() const { return m_dryRun; }
86 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
87 inline void SetDryRun(bool value) {
88 m_dryRunHasBeenSet = true;
89 m_dryRun = value;
90 }
91 inline RevokeGrantRequest& WithDryRun(bool value) {
92 SetDryRun(value);
93 return *this;
94 }
96 private:
97 Aws::String m_keyId;
98
99 Aws::String m_grantId;
100
101 bool m_dryRun{false};
102 bool m_keyIdHasBeenSet = false;
103 bool m_grantIdHasBeenSet = false;
104 bool m_dryRunHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace KMS
109} // namespace Aws
RevokeGrantRequest & WithKeyId(KeyIdT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
const Aws::String & GetGrantId() const
RevokeGrantRequest & WithDryRun(bool value)
const Aws::String & GetKeyId() const
RevokeGrantRequest & WithGrantId(GrantIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API RevokeGrantRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String