AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const InstanceAttributeType& GetAttributeType() const{ return m_attributeType; }
47 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
48 inline void SetAttributeType(const InstanceAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
49 inline void SetAttributeType(InstanceAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
50 inline Attribute& WithAttributeType(const InstanceAttributeType& value) { SetAttributeType(value); return *this;}
51 inline Attribute& WithAttributeType(InstanceAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
61 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
63 inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
64 inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
65 inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
67 private:
68
69 InstanceAttributeType m_attributeType;
70 bool m_attributeTypeHasBeenSet = false;
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Connect
78} // namespace Aws
const InstanceAttributeType & GetAttributeType() const
Definition Attribute.h:46
void SetValue(Aws::String &&value)
Definition Attribute.h:61
bool AttributeTypeHasBeenSet() const
Definition Attribute.h:47
AWS_CONNECT_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithValue(const char *value)
Definition Attribute.h:65
Attribute & WithAttributeType(const InstanceAttributeType &value)
Definition Attribute.h:50
Attribute & WithValue(const Aws::String &value)
Definition Attribute.h:63
void SetValue(const char *value)
Definition Attribute.h:62
void SetAttributeType(InstanceAttributeType &&value)
Definition Attribute.h:49
AWS_CONNECT_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Attribute & WithValue(Aws::String &&value)
Definition Attribute.h:64
void SetAttributeType(const InstanceAttributeType &value)
Definition Attribute.h:48
Attribute & WithAttributeType(InstanceAttributeType &&value)
Definition Attribute.h:51
const Aws::String & GetValue() const
Definition Attribute.h:58
void SetValue(const Aws::String &value)
Definition Attribute.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue