AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
View.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/ViewContent.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 ConnectParticipant {
21namespace Model {
22
29class View {
30 public:
31 AWS_CONNECTPARTICIPANT_API View() = default;
32 AWS_CONNECTPARTICIPANT_API View(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTPARTICIPANT_API View& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 View& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 View& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 View& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline int GetVersion() const { return m_version; }
95 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
96 inline void SetVersion(int value) {
97 m_versionHasBeenSet = true;
98 m_version = value;
99 }
100 inline View& WithVersion(int value) {
101 SetVersion(value);
102 return *this;
103 }
105
107
111 inline const ViewContent& GetContent() const { return m_content; }
112 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
113 template <typename ContentT = ViewContent>
114 void SetContent(ContentT&& value) {
115 m_contentHasBeenSet = true;
116 m_content = std::forward<ContentT>(value);
117 }
118 template <typename ContentT = ViewContent>
119 View& WithContent(ContentT&& value) {
120 SetContent(std::forward<ContentT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_id;
126
127 Aws::String m_arn;
128
129 Aws::String m_name;
130
131 int m_version{0};
132
133 ViewContent m_content;
134 bool m_idHasBeenSet = false;
135 bool m_arnHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_versionHasBeenSet = false;
138 bool m_contentHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ConnectParticipant
143} // namespace Aws
const Aws::String & GetId() const
Definition View.h:40
const Aws::String & GetName() const
Definition View.h:76
View & WithName(NameT &&value)
Definition View.h:84
void SetArn(ArnT &&value)
Definition View.h:61
const Aws::String & GetArn() const
Definition View.h:58
View & WithVersion(int value)
Definition View.h:100
View & WithContent(ContentT &&value)
Definition View.h:119
AWS_CONNECTPARTICIPANT_API View(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition View.h:79
AWS_CONNECTPARTICIPANT_API View & operator=(Aws::Utils::Json::JsonView jsonValue)
const ViewContent & GetContent() const
Definition View.h:111
View & WithArn(ArnT &&value)
Definition View.h:66
View & WithId(IdT &&value)
Definition View.h:48
void SetContent(ContentT &&value)
Definition View.h:114
AWS_CONNECTPARTICIPANT_API View()=default
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue