AWS SDK for C++  1.9.153
AWS SDK for C++
Reference.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 
35  {
36  public:
41 
42 
48  inline const Aws::String& GetValue() const{ return m_value; }
49 
55  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
56 
62  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 
69  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
70 
76  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
77 
83  inline Reference& WithValue(const Aws::String& value) { SetValue(value); return *this;}
84 
90  inline Reference& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
91 
97  inline Reference& WithValue(const char* value) { SetValue(value); return *this;}
98 
99 
104  inline const ReferenceType& GetType() const{ return m_type; }
105 
110  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 
116  inline void SetType(const ReferenceType& value) { m_typeHasBeenSet = true; m_type = value; }
117 
122  inline void SetType(ReferenceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
123 
128  inline Reference& WithType(const ReferenceType& value) { SetType(value); return *this;}
129 
134  inline Reference& WithType(ReferenceType&& value) { SetType(std::move(value)); return *this;}
135 
136  private:
137 
138  Aws::String m_value;
139  bool m_valueHasBeenSet;
140 
141  ReferenceType m_type;
142  bool m_typeHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Connect
147 } // namespace Aws
Aws::Connect::Model::Reference::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Reference.h:55
ReferenceType.h
Aws::Connect::Model::Reference::WithValue
Reference & WithValue(Aws::String &&value)
Definition: Reference.h:90
Aws::Connect::Model::ReferenceType
ReferenceType
Definition: ReferenceType.h:17
Aws::Connect::Model::Reference
Definition: Reference.h:35
Aws::Connect::Model::Reference::GetType
const ReferenceType & GetType() const
Definition: Reference.h:104
Aws::Connect::Model::Reference::WithValue
Reference & WithValue(const Aws::String &value)
Definition: Reference.h:83
Aws::Connect::Model::Reference::SetValue
void SetValue(const char *value)
Definition: Reference.h:76
Aws::Connect::Model::Reference::SetType
void SetType(ReferenceType &&value)
Definition: Reference.h:122
Aws::Connect::Model::Reference::SetValue
void SetValue(Aws::String &&value)
Definition: Reference.h:69
Aws::Connect::Model::Reference::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::Reference::Reference
Reference()
Aws::Connect::Model::Reference::WithType
Reference & WithType(ReferenceType &&value)
Definition: Reference.h:134
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::Reference::GetValue
const Aws::String & GetValue() const
Definition: Reference.h:48
Aws::Connect::Model::Reference::WithType
Reference & WithType(const ReferenceType &value)
Definition: Reference.h:128
Aws::Connect::Model::Reference::SetValue
void SetValue(const Aws::String &value)
Definition: Reference.h:62
Aws::Connect::Model::Reference::SetType
void SetType(const ReferenceType &value)
Definition: Reference.h:116
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::Reference::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Reference.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::Reference::WithValue
Reference & WithValue(const char *value)
Definition: Reference.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::Reference::Reference
Reference(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Reference::operator=
Reference & operator=(Aws::Utils::Json::JsonView jsonValue)
Connect_EXPORTS.h