AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
TemplateSummary.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/TagPropagationConfiguration.h>
9#include <aws/connectcases/model/TemplateStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCases {
23namespace Model {
24
31 public:
32 AWS_CONNECTCASES_API TemplateSummary() = default;
33 AWS_CONNECTCASES_API TemplateSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API TemplateSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTemplateId() const { return m_templateId; }
42 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
43 template <typename TemplateIdT = Aws::String>
44 void SetTemplateId(TemplateIdT&& value) {
45 m_templateIdHasBeenSet = true;
46 m_templateId = std::forward<TemplateIdT>(value);
47 }
48 template <typename TemplateIdT = Aws::String>
49 TemplateSummary& WithTemplateId(TemplateIdT&& value) {
50 SetTemplateId(std::forward<TemplateIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
60 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
61 template <typename TemplateArnT = Aws::String>
62 void SetTemplateArn(TemplateArnT&& value) {
63 m_templateArnHasBeenSet = true;
64 m_templateArn = std::forward<TemplateArnT>(value);
65 }
66 template <typename TemplateArnT = Aws::String>
67 TemplateSummary& WithTemplateArn(TemplateArnT&& value) {
68 SetTemplateArn(std::forward<TemplateArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 TemplateSummary& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline TemplateStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(TemplateStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
113 inline const Aws::Vector<TagPropagationConfiguration>& GetTagPropagationConfigurations() const { return m_tagPropagationConfigurations; }
114 inline bool TagPropagationConfigurationsHasBeenSet() const { return m_tagPropagationConfigurationsHasBeenSet; }
115 template <typename TagPropagationConfigurationsT = Aws::Vector<TagPropagationConfiguration>>
116 void SetTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
117 m_tagPropagationConfigurationsHasBeenSet = true;
118 m_tagPropagationConfigurations = std::forward<TagPropagationConfigurationsT>(value);
119 }
120 template <typename TagPropagationConfigurationsT = Aws::Vector<TagPropagationConfiguration>>
121 TemplateSummary& WithTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
122 SetTagPropagationConfigurations(std::forward<TagPropagationConfigurationsT>(value));
123 return *this;
124 }
125 template <typename TagPropagationConfigurationsT = TagPropagationConfiguration>
126 TemplateSummary& AddTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
127 m_tagPropagationConfigurationsHasBeenSet = true;
128 m_tagPropagationConfigurations.emplace_back(std::forward<TagPropagationConfigurationsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_templateId;
134
135 Aws::String m_templateArn;
136
137 Aws::String m_name;
138
140
141 Aws::Vector<TagPropagationConfiguration> m_tagPropagationConfigurations;
142 bool m_templateIdHasBeenSet = false;
143 bool m_templateArnHasBeenSet = false;
144 bool m_nameHasBeenSet = false;
145 bool m_statusHasBeenSet = false;
146 bool m_tagPropagationConfigurationsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace ConnectCases
151} // namespace Aws
TemplateSummary & WithTemplateId(TemplateIdT &&value)
TemplateSummary & WithStatus(TemplateStatus value)
const Aws::String & GetTemplateId() const
TemplateSummary & AddTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
AWS_CONNECTCASES_API TemplateSummary()=default
void SetTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
TemplateSummary & WithTemplateArn(TemplateArnT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateArn() const
TemplateSummary & WithTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
const Aws::Vector< TagPropagationConfiguration > & GetTagPropagationConfigurations() const
TemplateSummary & WithName(NameT &&value)
AWS_CONNECTCASES_API TemplateSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API TemplateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateArn(TemplateArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue