AWS SDK for C++  0.14.3
AWS SDK for C++
AliasListEntry.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 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace KMS
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  AliasListEntry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetAliasName() const{ return m_aliasName; }
48 
52  inline void SetAliasName(const Aws::String& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; }
53 
57  inline void SetAliasName(Aws::String&& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; }
58 
62  inline void SetAliasName(const char* value) { m_aliasNameHasBeenSet = true; m_aliasName.assign(value); }
63 
67  inline AliasListEntry& WithAliasName(const Aws::String& value) { SetAliasName(value); return *this;}
68 
72  inline AliasListEntry& WithAliasName(Aws::String&& value) { SetAliasName(value); return *this;}
73 
77  inline AliasListEntry& WithAliasName(const char* value) { SetAliasName(value); return *this;}
78 
82  inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
83 
87  inline void SetAliasArn(const Aws::String& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
88 
92  inline void SetAliasArn(Aws::String&& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
93 
97  inline void SetAliasArn(const char* value) { m_aliasArnHasBeenSet = true; m_aliasArn.assign(value); }
98 
102  inline AliasListEntry& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
103 
107  inline AliasListEntry& WithAliasArn(Aws::String&& value) { SetAliasArn(value); return *this;}
108 
112  inline AliasListEntry& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
113 
117  inline const Aws::String& GetTargetKeyId() const{ return m_targetKeyId; }
118 
122  inline void SetTargetKeyId(const Aws::String& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = value; }
123 
127  inline void SetTargetKeyId(Aws::String&& value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId = value; }
128 
132  inline void SetTargetKeyId(const char* value) { m_targetKeyIdHasBeenSet = true; m_targetKeyId.assign(value); }
133 
137  inline AliasListEntry& WithTargetKeyId(const Aws::String& value) { SetTargetKeyId(value); return *this;}
138 
142  inline AliasListEntry& WithTargetKeyId(Aws::String&& value) { SetTargetKeyId(value); return *this;}
143 
147  inline AliasListEntry& WithTargetKeyId(const char* value) { SetTargetKeyId(value); return *this;}
148 
149  private:
150  Aws::String m_aliasName;
151  bool m_aliasNameHasBeenSet;
152  Aws::String m_aliasArn;
153  bool m_aliasArnHasBeenSet;
154  Aws::String m_targetKeyId;
155  bool m_targetKeyIdHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace KMS
160 } // namespace Aws
AliasListEntry & WithAliasName(const char *value)
const Aws::String & GetAliasArn() const
const Aws::String & GetTargetKeyId() const
AliasListEntry & WithAliasName(Aws::String &&value)
void SetAliasArn(const Aws::String &value)
AliasListEntry & WithAliasName(const Aws::String &value)
void SetAliasArn(const char *value)
void SetTargetKeyId(const Aws::String &value)
void SetAliasName(const Aws::String &value)
void SetTargetKeyId(const char *value)
void SetTargetKeyId(Aws::String &&value)
void SetAliasName(const char *value)
AliasListEntry & WithAliasArn(const Aws::String &value)
AliasListEntry & WithTargetKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AliasListEntry & WithAliasArn(const char *value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:37
AliasListEntry & WithTargetKeyId(Aws::String &&value)
void SetAliasArn(Aws::String &&value)
const Aws::String & GetAliasName() const
void SetAliasName(Aws::String &&value)
AliasListEntry & WithAliasArn(Aws::String &&value)
AliasListEntry & WithTargetKeyId(const char *value)
JSON (JavaScript Object Notation).