AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDTRAIL_API LookupAttribute() = default;
37 AWS_CLOUDTRAIL_API LookupAttribute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline LookupAttributeKey GetAttributeKey() const { return m_attributeKey; }
47 inline bool AttributeKeyHasBeenSet() const { return m_attributeKeyHasBeenSet; }
48 inline void SetAttributeKey(LookupAttributeKey value) { m_attributeKeyHasBeenSet = true; m_attributeKey = value; }
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) { m_attributeValueHasBeenSet = true; m_attributeValue = std::forward<AttributeValueT>(value); }
64 template<typename AttributeValueT = Aws::String>
65 LookupAttribute& WithAttributeValue(AttributeValueT&& value) { SetAttributeValue(std::forward<AttributeValueT>(value)); return *this;}
67 private:
68
70 bool m_attributeKeyHasBeenSet = false;
71
72 Aws::String m_attributeValue;
73 bool m_attributeValueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudTrail
78} // 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