AWS SDK for C++  0.14.3
AWS SDK for C++
EncryptionKey.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  EncryptionKey();
43  EncryptionKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
63 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
74  inline EncryptionKey& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
80  inline EncryptionKey& WithId(Aws::String&& value) { SetId(value); return *this;}
81 
86  inline EncryptionKey& WithId(const char* value) { SetId(value); return *this;}
87 
92  inline const EncryptionKeyType& GetType() const{ return m_type; }
93 
98  inline void SetType(const EncryptionKeyType& value) { m_typeHasBeenSet = true; m_type = value; }
99 
104  inline void SetType(EncryptionKeyType&& value) { m_typeHasBeenSet = true; m_type = value; }
105 
110  inline EncryptionKey& WithType(const EncryptionKeyType& value) { SetType(value); return *this;}
111 
116  inline EncryptionKey& WithType(EncryptionKeyType&& value) { SetType(value); return *this;}
117 
118  private:
119  Aws::String m_id;
120  bool m_idHasBeenSet;
121  EncryptionKeyType m_type;
122  bool m_typeHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace CodePipeline
127 } // namespace Aws
EncryptionKey & WithId(Aws::String &&value)
Definition: EncryptionKey.h:80
EncryptionKey & WithType(const EncryptionKeyType &value)
EncryptionKey & WithId(const char *value)
Definition: EncryptionKey.h:86
#define AWS_CODEPIPELINE_API
const EncryptionKeyType & GetType() const
Definition: EncryptionKey.h:92
const Aws::String & GetId() const
Definition: EncryptionKey.h:50
void SetId(const Aws::String &value)
Definition: EncryptionKey.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(EncryptionKeyType &&value)
EncryptionKey & WithType(EncryptionKeyType &&value)
void SetId(Aws::String &&value)
Definition: EncryptionKey.h:62
EncryptionKey & WithId(const Aws::String &value)
Definition: EncryptionKey.h:74
void SetType(const EncryptionKeyType &value)
Definition: EncryptionKey.h:98
JSON (JavaScript Object Notation).