AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AttachmentReference.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ReferenceStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API AttachmentReference() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 AttachmentReference& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 AttachmentReference& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline ReferenceStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(ReferenceStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetArn() const { return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 template <typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) {
96 m_arnHasBeenSet = true;
97 m_arn = std::forward<ArnT>(value);
98 }
99 template <typename ArnT = Aws::String>
101 SetArn(std::forward<ArnT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107
108 Aws::String m_value;
109
111
112 Aws::String m_arn;
113 bool m_nameHasBeenSet = false;
114 bool m_valueHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_arnHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Connect
121} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API AttachmentReference()=default
AttachmentReference & WithStatus(ReferenceStatus value)
AttachmentReference & WithValue(ValueT &&value)
AWS_CONNECT_API AttachmentReference(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AttachmentReference & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentReference & WithArn(ArnT &&value)
AttachmentReference & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue