AWS SDK for C++  0.14.3
AWS SDK for C++
GetParametersForImportRequest.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>
21 
22 namespace Aws
23 {
24 namespace KMS
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
48  inline const Aws::String& GetKeyId() const{ return m_keyId; }
49 
59  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
60 
70  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
71 
81  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
82 
92  inline GetParametersForImportRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
93 
103  inline GetParametersForImportRequest& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
104 
114  inline GetParametersForImportRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
115 
123  inline const AlgorithmSpec& GetWrappingAlgorithm() const{ return m_wrappingAlgorithm; }
124 
132  inline void SetWrappingAlgorithm(const AlgorithmSpec& value) { m_wrappingAlgorithmHasBeenSet = true; m_wrappingAlgorithm = value; }
133 
141  inline void SetWrappingAlgorithm(AlgorithmSpec&& value) { m_wrappingAlgorithmHasBeenSet = true; m_wrappingAlgorithm = value; }
142 
150  inline GetParametersForImportRequest& WithWrappingAlgorithm(const AlgorithmSpec& value) { SetWrappingAlgorithm(value); return *this;}
151 
159  inline GetParametersForImportRequest& WithWrappingAlgorithm(AlgorithmSpec&& value) { SetWrappingAlgorithm(value); return *this;}
160 
165  inline const WrappingKeySpec& GetWrappingKeySpec() const{ return m_wrappingKeySpec; }
166 
171  inline void SetWrappingKeySpec(const WrappingKeySpec& value) { m_wrappingKeySpecHasBeenSet = true; m_wrappingKeySpec = value; }
172 
177  inline void SetWrappingKeySpec(WrappingKeySpec&& value) { m_wrappingKeySpecHasBeenSet = true; m_wrappingKeySpec = value; }
178 
183  inline GetParametersForImportRequest& WithWrappingKeySpec(const WrappingKeySpec& value) { SetWrappingKeySpec(value); return *this;}
184 
189  inline GetParametersForImportRequest& WithWrappingKeySpec(WrappingKeySpec&& value) { SetWrappingKeySpec(value); return *this;}
190 
191  private:
192  Aws::String m_keyId;
193  bool m_keyIdHasBeenSet;
194  AlgorithmSpec m_wrappingAlgorithm;
195  bool m_wrappingAlgorithmHasBeenSet;
196  WrappingKeySpec m_wrappingKeySpec;
197  bool m_wrappingKeySpecHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace KMS
202 } // namespace Aws
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
GetParametersForImportRequest & WithWrappingKeySpec(const WrappingKeySpec &value)
GetParametersForImportRequest & WithKeyId(const char *value)
GetParametersForImportRequest & WithKeyId(const Aws::String &value)
GetParametersForImportRequest & WithKeyId(Aws::String &&value)
GetParametersForImportRequest & WithWrappingAlgorithm(AlgorithmSpec &&value)
GetParametersForImportRequest & WithWrappingKeySpec(WrappingKeySpec &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
JSON (JavaScript Object Notation).
GetParametersForImportRequest & WithWrappingAlgorithm(const AlgorithmSpec &value)