AWS SDK for C++  0.14.3
AWS SDK for C++
GetParametersForImportResult.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>
18 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace KMS
34 {
35 namespace Model
36 {
38  {
39  public:
43 
49  inline const Aws::String& GetKeyId() const{ return m_keyId; }
50 
56  inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
57 
63  inline void SetKeyId(Aws::String&& value) { m_keyId = value; }
64 
70  inline void SetKeyId(const char* value) { m_keyId.assign(value); }
71 
77  inline GetParametersForImportResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
78 
84  inline GetParametersForImportResult& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
85 
91  inline GetParametersForImportResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
92 
97  inline const Aws::Utils::ByteBuffer& GetImportToken() const{ return m_importToken; }
98 
103  inline void SetImportToken(const Aws::Utils::ByteBuffer& value) { m_importToken = value; }
104 
109  inline void SetImportToken(Aws::Utils::ByteBuffer&& value) { m_importToken = value; }
110 
115  inline GetParametersForImportResult& WithImportToken(const Aws::Utils::ByteBuffer& value) { SetImportToken(value); return *this;}
116 
121  inline GetParametersForImportResult& WithImportToken(Aws::Utils::ByteBuffer&& value) { SetImportToken(value); return *this;}
122 
127  inline const Aws::Utils::ByteBuffer& GetPublicKey() const{ return m_publicKey; }
128 
133  inline void SetPublicKey(const Aws::Utils::ByteBuffer& value) { m_publicKey = value; }
134 
139  inline void SetPublicKey(Aws::Utils::ByteBuffer&& value) { m_publicKey = value; }
140 
145  inline GetParametersForImportResult& WithPublicKey(const Aws::Utils::ByteBuffer& value) { SetPublicKey(value); return *this;}
146 
151  inline GetParametersForImportResult& WithPublicKey(Aws::Utils::ByteBuffer&& value) { SetPublicKey(value); return *this;}
152 
159  inline const Aws::Utils::DateTime& GetParametersValidTo() const{ return m_parametersValidTo; }
160 
167  inline void SetParametersValidTo(const Aws::Utils::DateTime& value) { m_parametersValidTo = value; }
168 
175  inline void SetParametersValidTo(Aws::Utils::DateTime&& value) { m_parametersValidTo = value; }
176 
183  inline GetParametersForImportResult& WithParametersValidTo(const Aws::Utils::DateTime& value) { SetParametersValidTo(value); return *this;}
184 
191  inline GetParametersForImportResult& WithParametersValidTo(Aws::Utils::DateTime&& value) { SetParametersValidTo(value); return *this;}
192 
193  private:
194  Aws::String m_keyId;
195  Aws::Utils::ByteBuffer m_importToken;
196  Aws::Utils::ByteBuffer m_publicKey;
197  Aws::Utils::DateTime m_parametersValidTo;
198  };
199 
200 } // namespace Model
201 } // namespace KMS
202 } // namespace Aws
void SetPublicKey(const Aws::Utils::ByteBuffer &value)
GetParametersForImportResult & WithKeyId(const char *value)
const Aws::Utils::ByteBuffer & GetPublicKey() const
GetParametersForImportResult & WithImportToken(Aws::Utils::ByteBuffer &&value)
GetParametersForImportResult & WithKeyId(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetImportToken() const
GetParametersForImportResult & WithParametersValidTo(Aws::Utils::DateTime &&value)
GetParametersForImportResult & WithPublicKey(Aws::Utils::ByteBuffer &&value)
const Aws::Utils::DateTime & GetParametersValidTo() const
GetParametersForImportResult & WithParametersValidTo(const Aws::Utils::DateTime &value)
void SetImportToken(const Aws::Utils::ByteBuffer &value)
GetParametersForImportResult & WithImportToken(const Aws::Utils::ByteBuffer &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetParametersForImportResult & WithKeyId(const Aws::String &value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
GetParametersForImportResult & WithPublicKey(const Aws::Utils::ByteBuffer &value)
JSON (JavaScript Object Notation).
void SetParametersValidTo(const Aws::Utils::DateTime &value)