AWS SDK for C++  0.14.3
AWS SDK for C++
ReEncryptResult.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/core/utils/Array.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace KMS
33 {
34 namespace Model
35 {
37  {
38  public:
42 
47  inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
48 
53  inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlob = value; }
54 
59  inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlob = value; }
60 
65  inline ReEncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
66 
71  inline ReEncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(value); return *this;}
72 
76  inline const Aws::String& GetSourceKeyId() const{ return m_sourceKeyId; }
77 
81  inline void SetSourceKeyId(const Aws::String& value) { m_sourceKeyId = value; }
82 
86  inline void SetSourceKeyId(Aws::String&& value) { m_sourceKeyId = value; }
87 
91  inline void SetSourceKeyId(const char* value) { m_sourceKeyId.assign(value); }
92 
96  inline ReEncryptResult& WithSourceKeyId(const Aws::String& value) { SetSourceKeyId(value); return *this;}
97 
101  inline ReEncryptResult& WithSourceKeyId(Aws::String&& value) { SetSourceKeyId(value); return *this;}
102 
106  inline ReEncryptResult& WithSourceKeyId(const char* value) { SetSourceKeyId(value); return *this;}
107 
111  inline const Aws::String& GetKeyId() const{ return m_keyId; }
112 
116  inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
117 
121  inline void SetKeyId(Aws::String&& value) { m_keyId = value; }
122 
126  inline void SetKeyId(const char* value) { m_keyId.assign(value); }
127 
131  inline ReEncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
132 
136  inline ReEncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
137 
141  inline ReEncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
142 
143  private:
144  Aws::Utils::ByteBuffer m_ciphertextBlob;
145  Aws::String m_sourceKeyId;
146  Aws::String m_keyId;
147  };
148 
149 } // namespace Model
150 } // namespace KMS
151 } // namespace Aws
ReEncryptResult & WithSourceKeyId(Aws::String &&value)
const Aws::String & GetKeyId() const
ReEncryptResult & WithSourceKeyId(const Aws::String &value)
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
void SetKeyId(const char *value)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetSourceKeyId(const Aws::String &value)
const Aws::String & GetSourceKeyId() const
ReEncryptResult & WithKeyId(Aws::String &&value)
void SetKeyId(Aws::String &&value)
ReEncryptResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetKeyId(const Aws::String &value)
ReEncryptResult & WithKeyId(const Aws::String &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
ReEncryptResult & WithKeyId(const char *value)
ReEncryptResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
ReEncryptResult & WithSourceKeyId(const char *value)
JSON (JavaScript Object Notation).
void SetSourceKeyId(const char *value)
void SetSourceKeyId(Aws::String &&value)