AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Reference.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/ReferenceType.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
35 {
36 public:
37 AWS_CONNECT_API Reference();
38 AWS_CONNECT_API Reference(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Reference& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetValue() const{ return m_value; }
50 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
52 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
53 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
54 inline Reference& WithValue(const Aws::String& value) { SetValue(value); return *this;}
55 inline Reference& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
56 inline Reference& WithValue(const char* value) { SetValue(value); return *this;}
58
60
64 inline const ReferenceType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const ReferenceType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(ReferenceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline Reference& WithType(const ReferenceType& value) { SetType(value); return *this;}
69 inline Reference& WithType(ReferenceType&& value) { SetType(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_value;
74 bool m_valueHasBeenSet = false;
75
76 ReferenceType m_type;
77 bool m_typeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Connect
82} // namespace Aws
Reference & WithType(ReferenceType &&value)
Definition Reference.h:69
const ReferenceType & GetType() const
Definition Reference.h:64
Reference & WithValue(const Aws::String &value)
Definition Reference.h:54
void SetType(const ReferenceType &value)
Definition Reference.h:66
const Aws::String & GetValue() const
Definition Reference.h:49
AWS_CONNECT_API Reference & operator=(Aws::Utils::Json::JsonView jsonValue)
Reference & WithValue(const char *value)
Definition Reference.h:56
void SetValue(const char *value)
Definition Reference.h:53
Reference & WithType(const ReferenceType &value)
Definition Reference.h:68
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API Reference(Aws::Utils::Json::JsonView jsonValue)
void SetType(ReferenceType &&value)
Definition Reference.h:67
void SetValue(const Aws::String &value)
Definition Reference.h:51
Reference & WithValue(Aws::String &&value)
Definition Reference.h:55
void SetValue(Aws::String &&value)
Definition Reference.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue