AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attribute.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/InstanceAttributeType.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 Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API Attribute() = default;
37 AWS_CONNECT_API Attribute(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline InstanceAttributeType GetAttributeType() const { return m_attributeType; }
47 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
48 inline void SetAttributeType(InstanceAttributeType value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
49 inline Attribute& WithAttributeType(InstanceAttributeType value) { SetAttributeType(value); return *this;}
51
53
56 inline const Aws::String& GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 template<typename ValueT = Aws::String>
59 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
60 template<typename ValueT = Aws::String>
61 Attribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
63 private:
64
66 bool m_attributeTypeHasBeenSet = false;
67
68 Aws::String m_value;
69 bool m_valueHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Connect
74} // namespace Aws
void SetValue(ValueT &&value)
Definition Attribute.h:59
InstanceAttributeType GetAttributeType() const
Definition Attribute.h:46
bool AttributeTypeHasBeenSet() const
Definition Attribute.h:47
AWS_CONNECT_API Attribute(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Attribute()=default
AWS_CONNECT_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Attribute & WithAttributeType(InstanceAttributeType value)
Definition Attribute.h:49
void SetAttributeType(InstanceAttributeType value)
Definition Attribute.h:48
Attribute & WithValue(ValueT &&value)
Definition Attribute.h:61
const Aws::String & GetValue() const
Definition Attribute.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue