AWS SDK for C++  0.12.9
AWS SDK for C++
CreateKeyRequest.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>
20 
21 namespace Aws
22 {
23 namespace KMS
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
59  inline const Aws::String& GetPolicy() const{ return m_policy; }
60 
82  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
83 
105  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
106 
128  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
129 
151  inline CreateKeyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
152 
174  inline CreateKeyRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
175 
197  inline CreateKeyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
198 
203  inline const Aws::String& GetDescription() const{ return m_description; }
204 
209  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
210 
215  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
216 
221  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
222 
227  inline CreateKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
228 
233  inline CreateKeyRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
234 
239  inline CreateKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
240 
245  inline const KeyUsageType& GetKeyUsage() const{ return m_keyUsage; }
246 
251  inline void SetKeyUsage(const KeyUsageType& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; }
252 
257  inline void SetKeyUsage(KeyUsageType&& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; }
258 
263  inline CreateKeyRequest& WithKeyUsage(const KeyUsageType& value) { SetKeyUsage(value); return *this;}
264 
269  inline CreateKeyRequest& WithKeyUsage(KeyUsageType&& value) { SetKeyUsage(value); return *this;}
270 
283  inline bool GetBypassPolicyLockoutSafetyCheck() const{ return m_bypassPolicyLockoutSafetyCheck; }
284 
297  inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
298 
311  inline CreateKeyRequest& WithBypassPolicyLockoutSafetyCheck(bool value) { SetBypassPolicyLockoutSafetyCheck(value); return *this;}
312 
313  private:
314  Aws::String m_policy;
315  bool m_policyHasBeenSet;
316  Aws::String m_description;
317  bool m_descriptionHasBeenSet;
318  KeyUsageType m_keyUsage;
319  bool m_keyUsageHasBeenSet;
320  bool m_bypassPolicyLockoutSafetyCheck;
321  bool m_bypassPolicyLockoutSafetyCheckHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace KMS
326 } // namespace Aws
CreateKeyRequest & WithPolicy(const Aws::String &value)
void SetBypassPolicyLockoutSafetyCheck(bool value)
const KeyUsageType & GetKeyUsage() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetPolicy(const Aws::String &value)
CreateKeyRequest & WithKeyUsage(KeyUsageType &&value)
CreateKeyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
CreateKeyRequest & WithDescription(Aws::String &&value)
void SetPolicy(Aws::String &&value)
CreateKeyRequest & WithDescription(const Aws::String &value)
void SetPolicy(const char *value)
void SetKeyUsage(const KeyUsageType &value)
CreateKeyRequest & WithKeyUsage(const KeyUsageType &value)
const Aws::String & GetPolicy() const
CreateKeyRequest & WithPolicy(const char *value)
CreateKeyRequest & WithPolicy(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateKeyRequest & WithDescription(const char *value)
void SetDescription(const char *value)
void SetKeyUsage(KeyUsageType &&value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:34
JSON (JavaScript Object Notation).
const Aws::String & GetDescription() const