AWS SDK for C++  0.14.3
AWS SDK for C++
RetireGrantRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/kms/KMS_EXPORTS.h>
17 #include <aws/kms/KMSRequest.h>
19 
20 namespace Aws
21 {
22 namespace KMS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetGrantToken() const{ return m_grantToken; }
41 
45  inline void SetGrantToken(const Aws::String& value) { m_grantTokenHasBeenSet = true; m_grantToken = value; }
46 
50  inline void SetGrantToken(Aws::String&& value) { m_grantTokenHasBeenSet = true; m_grantToken = value; }
51 
55  inline void SetGrantToken(const char* value) { m_grantTokenHasBeenSet = true; m_grantToken.assign(value); }
56 
60  inline RetireGrantRequest& WithGrantToken(const Aws::String& value) { SetGrantToken(value); return *this;}
61 
65  inline RetireGrantRequest& WithGrantToken(Aws::String&& value) { SetGrantToken(value); return *this;}
66 
70  inline RetireGrantRequest& WithGrantToken(const char* value) { SetGrantToken(value); return *this;}
71 
80  inline const Aws::String& GetKeyId() const{ return m_keyId; }
81 
90  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
91 
100  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
101 
110  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
111 
120  inline RetireGrantRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
121 
130  inline RetireGrantRequest& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
131 
140  inline RetireGrantRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
141 
147  inline const Aws::String& GetGrantId() const{ return m_grantId; }
148 
154  inline void SetGrantId(const Aws::String& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
155 
161  inline void SetGrantId(Aws::String&& value) { m_grantIdHasBeenSet = true; m_grantId = value; }
162 
168  inline void SetGrantId(const char* value) { m_grantIdHasBeenSet = true; m_grantId.assign(value); }
169 
175  inline RetireGrantRequest& WithGrantId(const Aws::String& value) { SetGrantId(value); return *this;}
176 
182  inline RetireGrantRequest& WithGrantId(Aws::String&& value) { SetGrantId(value); return *this;}
183 
189  inline RetireGrantRequest& WithGrantId(const char* value) { SetGrantId(value); return *this;}
190 
191  private:
192  Aws::String m_grantToken;
193  bool m_grantTokenHasBeenSet;
194  Aws::String m_keyId;
195  bool m_keyIdHasBeenSet;
196  Aws::String m_grantId;
197  bool m_grantIdHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace KMS
202 } // namespace Aws
RetireGrantRequest & WithGrantToken(const Aws::String &value)
void SetGrantToken(const char *value)
RetireGrantRequest & WithGrantId(Aws::String &&value)
const Aws::String & GetKeyId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetGrantId(const Aws::String &value)
RetireGrantRequest & WithGrantId(const Aws::String &value)
RetireGrantRequest & WithGrantId(const char *value)
RetireGrantRequest & WithKeyId(const Aws::String &value)
RetireGrantRequest & WithGrantToken(const char *value)
const Aws::String & GetGrantToken() const
void SetKeyId(const Aws::String &value)
RetireGrantRequest & WithKeyId(const char *value)
void SetGrantToken(Aws::String &&value)
void SetGrantToken(const Aws::String &value)
const Aws::String & GetGrantId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetKeyId(Aws::String &&value)
RetireGrantRequest & WithKeyId(Aws::String &&value)
void SetGrantId(Aws::String &&value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
RetireGrantRequest & WithGrantToken(Aws::String &&value)
JSON (JavaScript Object Notation).