AWS SDK for C++  1.9.153
AWS SDK for C++
Attribute.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Connect
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const InstanceAttributeType& GetAttributeType() const{ return m_attributeType; }
46 
50  inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
51 
55  inline void SetAttributeType(const InstanceAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
56 
60  inline void SetAttributeType(InstanceAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
61 
65  inline Attribute& WithAttributeType(const InstanceAttributeType& value) { SetAttributeType(value); return *this;}
66 
70  inline Attribute& WithAttributeType(InstanceAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetValue() const{ return m_value; }
77 
81  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
82 
86  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
87 
91  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
92 
96  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
97 
101  inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
102 
106  inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
107 
111  inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
112 
113  private:
114 
115  InstanceAttributeType m_attributeType;
116  bool m_attributeTypeHasBeenSet;
117 
118  Aws::String m_value;
119  bool m_valueHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Connect
124 } // namespace Aws
Aws::Connect::Model::Attribute::Attribute
Attribute(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Attribute::SetValue
void SetValue(const Aws::String &value)
Definition: Attribute.h:86
Aws::Connect::Model::Attribute::WithAttributeType
Attribute & WithAttributeType(const InstanceAttributeType &value)
Definition: Attribute.h:65
Aws::Connect::Model::Attribute::WithValue
Attribute & WithValue(Aws::String &&value)
Definition: Attribute.h:106
Aws::Connect::Model::Attribute::WithAttributeType
Attribute & WithAttributeType(InstanceAttributeType &&value)
Definition: Attribute.h:70
Aws::Connect::Model::Attribute::GetAttributeType
const InstanceAttributeType & GetAttributeType() const
Definition: Attribute.h:45
Aws::Connect::Model::Attribute::SetAttributeType
void SetAttributeType(InstanceAttributeType &&value)
Definition: Attribute.h:60
Aws::Connect::Model::InstanceAttributeType
InstanceAttributeType
Definition: InstanceAttributeType.h:17
Aws::Connect::Model::Attribute::SetValue
void SetValue(const char *value)
Definition: Attribute.h:96
Aws::Connect::Model::Attribute::WithValue
Attribute & WithValue(const char *value)
Definition: Attribute.h:111
Aws::Connect::Model::Attribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Attribute.h:81
Aws::Connect::Model::Attribute::SetAttributeType
void SetAttributeType(const InstanceAttributeType &value)
Definition: Attribute.h:55
Aws::Connect::Model::Attribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::Attribute::SetValue
void SetValue(Aws::String &&value)
Definition: Attribute.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::Attribute::GetValue
const Aws::String & GetValue() const
Definition: Attribute.h:76
InstanceAttributeType.h
Aws::Connect::Model::Attribute::WithValue
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:101
Aws::Connect::Model::Attribute::Attribute
Attribute()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::Attribute::operator=
Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Attribute
Definition: Attribute.h:34
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::Attribute::AttributeTypeHasBeenSet
bool AttributeTypeHasBeenSet() const
Definition: Attribute.h:50
Connect_EXPORTS.h