AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LookupAttribute.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/LookupAttributeKey.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudTrail {
21namespace Model {
22
30 public:
31 AWS_CLOUDTRAIL_API LookupAttribute() = default;
32 AWS_CLOUDTRAIL_API LookupAttribute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline LookupAttributeKey GetAttributeKey() const { return m_attributeKey; }
41 inline bool AttributeKeyHasBeenSet() const { return m_attributeKeyHasBeenSet; }
43 m_attributeKeyHasBeenSet = true;
44 m_attributeKey = value;
45 }
47 SetAttributeKey(value);
48 return *this;
49 }
51
53
60 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
61 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
62 template <typename AttributeValueT = Aws::String>
63 void SetAttributeValue(AttributeValueT&& value) {
64 m_attributeValueHasBeenSet = true;
65 m_attributeValue = std::forward<AttributeValueT>(value);
66 }
67 template <typename AttributeValueT = Aws::String>
68 LookupAttribute& WithAttributeValue(AttributeValueT&& value) {
69 SetAttributeValue(std::forward<AttributeValueT>(value));
70 return *this;
71 }
73 private:
75
76 Aws::String m_attributeValue;
77 bool m_attributeKeyHasBeenSet = false;
78 bool m_attributeValueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace CloudTrail
83} // namespace Aws
LookupAttribute & WithAttributeKey(LookupAttributeKey value)
const Aws::String & GetAttributeValue() const
AWS_CLOUDTRAIL_API LookupAttribute()=default
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
LookupAttribute & WithAttributeValue(AttributeValueT &&value)
void SetAttributeKey(LookupAttributeKey value)
AWS_CLOUDTRAIL_API LookupAttribute(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API LookupAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeValue(AttributeValueT &&value)
LookupAttributeKey GetAttributeKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue