AWS SDK for C++  0.12.9
AWS SDK for C++
EncryptResult.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:
39  EncryptResult();
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 EncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
66 
71  inline EncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(value); return *this;}
72 
76  inline const Aws::String& GetKeyId() const{ return m_keyId; }
77 
81  inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
82 
86  inline void SetKeyId(Aws::String&& value) { m_keyId = value; }
87 
91  inline void SetKeyId(const char* value) { m_keyId.assign(value); }
92 
96  inline EncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
97 
101  inline EncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
102 
106  inline EncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
107 
108  private:
109  Aws::Utils::ByteBuffer m_ciphertextBlob;
110  Aws::String m_keyId;
111  };
112 
113 } // namespace Model
114 } // namespace KMS
115 } // namespace Aws
EncryptResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
Definition: EncryptResult.h:71
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
Definition: EncryptResult.h:59
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
Definition: EncryptResult.h:53
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
Definition: EncryptResult.h:47
EncryptResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
Definition: EncryptResult.h:65
EncryptResult & WithKeyId(const char *value)
void SetKeyId(const char *value)
Definition: EncryptResult.h:91
const Aws::String & GetKeyId() const
Definition: EncryptResult.h:76
EncryptResult & WithKeyId(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:34
void SetKeyId(Aws::String &&value)
Definition: EncryptResult.h:86
EncryptResult & WithKeyId(const Aws::String &value)
Definition: EncryptResult.h:96
JSON (JavaScript Object Notation).
void SetKeyId(const Aws::String &value)
Definition: EncryptResult.h:81