AWS SDK for C++  0.12.9
AWS SDK for C++
LookupAttribute.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 CloudTrail
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  LookupAttribute& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const LookupAttributeKey& GetAttributeKey() const{ return m_attributeKey; }
49 
53  inline void SetAttributeKey(const LookupAttributeKey& value) { m_attributeKeyHasBeenSet = true; m_attributeKey = value; }
54 
58  inline void SetAttributeKey(LookupAttributeKey&& value) { m_attributeKeyHasBeenSet = true; m_attributeKey = value; }
59 
63  inline LookupAttribute& WithAttributeKey(const LookupAttributeKey& value) { SetAttributeKey(value); return *this;}
64 
68  inline LookupAttribute& WithAttributeKey(LookupAttributeKey&& value) { SetAttributeKey(value); return *this;}
69 
73  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
74 
78  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
79 
83  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
84 
88  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
89 
93  inline LookupAttribute& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
94 
98  inline LookupAttribute& WithAttributeValue(Aws::String&& value) { SetAttributeValue(value); return *this;}
99 
103  inline LookupAttribute& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
104 
105  private:
106  LookupAttributeKey m_attributeKey;
107  bool m_attributeKeyHasBeenSet;
108  Aws::String m_attributeValue;
109  bool m_attributeValueHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace CloudTrail
114 } // namespace Aws
const Aws::String & GetAttributeValue() const
void SetAttributeValue(Aws::String &&value)
void SetAttributeValue(const Aws::String &value)
void SetAttributeKey(const LookupAttributeKey &value)
LookupAttribute & WithAttributeValue(const char *value)
const LookupAttributeKey & GetAttributeKey() const
LookupAttribute & WithAttributeKey(const LookupAttributeKey &value)
LookupAttribute & WithAttributeValue(const Aws::String &value)
LookupAttribute & WithAttributeKey(LookupAttributeKey &&value)
void SetAttributeKey(LookupAttributeKey &&value)
LookupAttribute & WithAttributeValue(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAttributeValue(const char *value)
#define AWS_CLOUDTRAIL_API
JSON (JavaScript Object Notation).