AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PredefinedAttribute.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PredefinedAttributeConfiguration.h>
9#include <aws/connect/model/PredefinedAttributeValues.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API PredefinedAttribute() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 PredefinedAttribute& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const PredefinedAttributeValues& GetValues() const { return m_values; }
61 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
62 template <typename ValuesT = PredefinedAttributeValues>
63 void SetValues(ValuesT&& value) {
64 m_valuesHasBeenSet = true;
65 m_values = std::forward<ValuesT>(value);
66 }
67 template <typename ValuesT = PredefinedAttributeValues>
68 PredefinedAttribute& WithValues(ValuesT&& value) {
69 SetValues(std::forward<ValuesT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetPurposes() const { return m_purposes; }
80 inline bool PurposesHasBeenSet() const { return m_purposesHasBeenSet; }
81 template <typename PurposesT = Aws::Vector<Aws::String>>
82 void SetPurposes(PurposesT&& value) {
83 m_purposesHasBeenSet = true;
84 m_purposes = std::forward<PurposesT>(value);
85 }
86 template <typename PurposesT = Aws::Vector<Aws::String>>
87 PredefinedAttribute& WithPurposes(PurposesT&& value) {
88 SetPurposes(std::forward<PurposesT>(value));
89 return *this;
90 }
91 template <typename PurposesT = Aws::String>
92 PredefinedAttribute& AddPurposes(PurposesT&& value) {
93 m_purposesHasBeenSet = true;
94 m_purposes.emplace_back(std::forward<PurposesT>(value));
95 return *this;
96 }
98
100
105 inline const PredefinedAttributeConfiguration& GetAttributeConfiguration() const { return m_attributeConfiguration; }
106 inline bool AttributeConfigurationHasBeenSet() const { return m_attributeConfigurationHasBeenSet; }
107 template <typename AttributeConfigurationT = PredefinedAttributeConfiguration>
108 void SetAttributeConfiguration(AttributeConfigurationT&& value) {
109 m_attributeConfigurationHasBeenSet = true;
110 m_attributeConfiguration = std::forward<AttributeConfigurationT>(value);
111 }
112 template <typename AttributeConfigurationT = PredefinedAttributeConfiguration>
113 PredefinedAttribute& WithAttributeConfiguration(AttributeConfigurationT&& value) {
114 SetAttributeConfiguration(std::forward<AttributeConfigurationT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
124 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
125 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
126 void SetLastModifiedTime(LastModifiedTimeT&& value) {
127 m_lastModifiedTimeHasBeenSet = true;
128 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
129 }
130 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
131 PredefinedAttribute& WithLastModifiedTime(LastModifiedTimeT&& value) {
132 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
142 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
143 template <typename LastModifiedRegionT = Aws::String>
144 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
145 m_lastModifiedRegionHasBeenSet = true;
146 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
147 }
148 template <typename LastModifiedRegionT = Aws::String>
149 PredefinedAttribute& WithLastModifiedRegion(LastModifiedRegionT&& value) {
150 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_name;
156
158
159 Aws::Vector<Aws::String> m_purposes;
160
161 PredefinedAttributeConfiguration m_attributeConfiguration;
162
163 Aws::Utils::DateTime m_lastModifiedTime{};
164
165 Aws::String m_lastModifiedRegion;
166 bool m_nameHasBeenSet = false;
167 bool m_valuesHasBeenSet = false;
168 bool m_purposesHasBeenSet = false;
169 bool m_attributeConfigurationHasBeenSet = false;
170 bool m_lastModifiedTimeHasBeenSet = false;
171 bool m_lastModifiedRegionHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace Connect
176} // namespace Aws
PredefinedAttribute & WithLastModifiedRegion(LastModifiedRegionT &&value)
PredefinedAttribute & WithName(NameT &&value)
AWS_CONNECT_API PredefinedAttribute()=default
void SetLastModifiedRegion(LastModifiedRegionT &&value)
PredefinedAttribute & WithValues(ValuesT &&value)
AWS_CONNECT_API PredefinedAttribute(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const PredefinedAttributeValues & GetValues() const
const Aws::String & GetLastModifiedRegion() const
PredefinedAttribute & AddPurposes(PurposesT &&value)
PredefinedAttribute & WithAttributeConfiguration(AttributeConfigurationT &&value)
PredefinedAttribute & WithPurposes(PurposesT &&value)
const PredefinedAttributeConfiguration & GetAttributeConfiguration() const
AWS_CONNECT_API PredefinedAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
PredefinedAttribute & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetPurposes() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetAttributeConfiguration(AttributeConfigurationT &&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