AWS SDK for C++  0.14.3
AWS SDK for C++
DecryptResult.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>
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  DecryptResult();
42 
47  inline const Aws::String& GetKeyId() const{ return m_keyId; }
48 
53  inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
54 
59  inline void SetKeyId(Aws::String&& value) { m_keyId = value; }
60 
65  inline void SetKeyId(const char* value) { m_keyId.assign(value); }
66 
71  inline DecryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
72 
77  inline DecryptResult& WithKeyId(Aws::String&& value) { SetKeyId(value); return *this;}
78 
83  inline DecryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
84 
89  inline const Aws::Utils::ByteBuffer& GetPlaintext() const{ return m_plaintext; }
90 
95  inline void SetPlaintext(const Aws::Utils::ByteBuffer& value) { m_plaintext = value; }
96 
101  inline void SetPlaintext(Aws::Utils::ByteBuffer&& value) { m_plaintext = value; }
102 
107  inline DecryptResult& WithPlaintext(const Aws::Utils::ByteBuffer& value) { SetPlaintext(value); return *this;}
108 
113  inline DecryptResult& WithPlaintext(Aws::Utils::ByteBuffer&& value) { SetPlaintext(value); return *this;}
114 
115  private:
116  Aws::String m_keyId;
117  Aws::Utils::ByteBuffer m_plaintext;
118  };
119 
120 } // namespace Model
121 } // namespace KMS
122 } // namespace Aws
const Aws::Utils::ByteBuffer & GetPlaintext() const
Definition: DecryptResult.h:89
DecryptResult & WithKeyId(Aws::String &&value)
Definition: DecryptResult.h:77
void SetKeyId(const Aws::String &value)
Definition: DecryptResult.h:53
DecryptResult & WithKeyId(const char *value)
Definition: DecryptResult.h:83
const Aws::String & GetKeyId() const
Definition: DecryptResult.h:47
DecryptResult & WithPlaintext(const Aws::Utils::ByteBuffer &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetKeyId(Aws::String &&value)
Definition: DecryptResult.h:59
void SetKeyId(const char *value)
Definition: DecryptResult.h:65
DecryptResult & WithPlaintext(Aws::Utils::ByteBuffer &&value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
DecryptResult & WithKeyId(const Aws::String &value)
Definition: DecryptResult.h:71
void SetPlaintext(Aws::Utils::ByteBuffer &&value)
JSON (JavaScript Object Notation).
void SetPlaintext(const Aws::Utils::ByteBuffer &value)
Definition: DecryptResult.h:95