AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HoursOfOperation.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/connect/model/HoursOfOperationConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API HoursOfOperation();
39 AWS_CONNECT_API HoursOfOperation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetHoursOfOperationId() const{ return m_hoursOfOperationId; }
49 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
50 inline void SetHoursOfOperationId(const Aws::String& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = value; }
51 inline void SetHoursOfOperationId(Aws::String&& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = std::move(value); }
52 inline void SetHoursOfOperationId(const char* value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId.assign(value); }
53 inline HoursOfOperation& WithHoursOfOperationId(const Aws::String& value) { SetHoursOfOperationId(value); return *this;}
54 inline HoursOfOperation& WithHoursOfOperationId(Aws::String&& value) { SetHoursOfOperationId(std::move(value)); return *this;}
55 inline HoursOfOperation& WithHoursOfOperationId(const char* value) { SetHoursOfOperationId(value); return *this;}
57
59
62 inline const Aws::String& GetHoursOfOperationArn() const{ return m_hoursOfOperationArn; }
63 inline bool HoursOfOperationArnHasBeenSet() const { return m_hoursOfOperationArnHasBeenSet; }
64 inline void SetHoursOfOperationArn(const Aws::String& value) { m_hoursOfOperationArnHasBeenSet = true; m_hoursOfOperationArn = value; }
65 inline void SetHoursOfOperationArn(Aws::String&& value) { m_hoursOfOperationArnHasBeenSet = true; m_hoursOfOperationArn = std::move(value); }
66 inline void SetHoursOfOperationArn(const char* value) { m_hoursOfOperationArnHasBeenSet = true; m_hoursOfOperationArn.assign(value); }
67 inline HoursOfOperation& WithHoursOfOperationArn(const Aws::String& value) { SetHoursOfOperationArn(value); return *this;}
68 inline HoursOfOperation& WithHoursOfOperationArn(Aws::String&& value) { SetHoursOfOperationArn(std::move(value)); return *this;}
69 inline HoursOfOperation& WithHoursOfOperationArn(const char* value) { SetHoursOfOperationArn(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline HoursOfOperation& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline HoursOfOperation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline HoursOfOperation& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline HoursOfOperation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline HoursOfOperation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline HoursOfOperation& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
104 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
105 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
106 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
107 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
108 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
109 inline HoursOfOperation& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
110 inline HoursOfOperation& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
111 inline HoursOfOperation& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
113
115
118 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const{ return m_config; }
119 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
120 inline void SetConfig(const Aws::Vector<HoursOfOperationConfig>& value) { m_configHasBeenSet = true; m_config = value; }
121 inline void SetConfig(Aws::Vector<HoursOfOperationConfig>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
122 inline HoursOfOperation& WithConfig(const Aws::Vector<HoursOfOperationConfig>& value) { SetConfig(value); return *this;}
123 inline HoursOfOperation& WithConfig(Aws::Vector<HoursOfOperationConfig>&& value) { SetConfig(std::move(value)); return *this;}
124 inline HoursOfOperation& AddConfig(const HoursOfOperationConfig& value) { m_configHasBeenSet = true; m_config.push_back(value); return *this; }
125 inline HoursOfOperation& AddConfig(HoursOfOperationConfig&& value) { m_configHasBeenSet = true; m_config.push_back(std::move(value)); return *this; }
127
129
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
136 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
137 inline HoursOfOperation& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
138 inline HoursOfOperation& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
139 inline HoursOfOperation& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
140 inline HoursOfOperation& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
141 inline HoursOfOperation& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
142 inline HoursOfOperation& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
143 inline HoursOfOperation& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
144 inline HoursOfOperation& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
145 inline HoursOfOperation& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147
149
152 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
153 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
154 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
155 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
157 inline HoursOfOperation& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
165 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
166 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
167 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
168 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
169 inline HoursOfOperation& WithLastModifiedRegion(const Aws::String& value) { SetLastModifiedRegion(value); return *this;}
170 inline HoursOfOperation& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
171 inline HoursOfOperation& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
173 private:
174
175 Aws::String m_hoursOfOperationId;
176 bool m_hoursOfOperationIdHasBeenSet = false;
177
178 Aws::String m_hoursOfOperationArn;
179 bool m_hoursOfOperationArnHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::String m_timeZone;
188 bool m_timeZoneHasBeenSet = false;
189
191 bool m_configHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195
196 Aws::Utils::DateTime m_lastModifiedTime;
197 bool m_lastModifiedTimeHasBeenSet = false;
198
199 Aws::String m_lastModifiedRegion;
200 bool m_lastModifiedRegionHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Connect
205} // namespace Aws
HoursOfOperation & WithHoursOfOperationArn(const char *value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
HoursOfOperation & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetConfig(Aws::Vector< HoursOfOperationConfig > &&value)
HoursOfOperation & WithDescription(const char *value)
const Aws::String & GetHoursOfOperationId() const
HoursOfOperation & WithDescription(Aws::String &&value)
HoursOfOperation & AddTags(Aws::String &&key, const char *value)
HoursOfOperation & AddTags(Aws::String &&key, Aws::String &&value)
HoursOfOperation & WithHoursOfOperationArn(Aws::String &&value)
HoursOfOperation & WithConfig(const Aws::Vector< HoursOfOperationConfig > &value)
void SetLastModifiedRegion(const char *value)
void SetHoursOfOperationId(const char *value)
HoursOfOperation & WithName(const char *value)
HoursOfOperation & WithHoursOfOperationId(Aws::String &&value)
HoursOfOperation & WithConfig(Aws::Vector< HoursOfOperationConfig > &&value)
HoursOfOperation & AddTags(const char *key, const char *value)
void SetTimeZone(Aws::String &&value)
HoursOfOperation & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
HoursOfOperation & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CONNECT_API HoursOfOperation(Aws::Utils::Json::JsonView jsonValue)
HoursOfOperation & WithTimeZone(const Aws::String &value)
HoursOfOperation & WithName(const Aws::String &value)
const Aws::String & GetDescription() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
HoursOfOperation & AddConfig(const HoursOfOperationConfig &value)
HoursOfOperation & WithLastModifiedTime(Aws::Utils::DateTime &&value)
HoursOfOperation & WithLastModifiedRegion(const Aws::String &value)
HoursOfOperation & AddTags(Aws::String &&key, const Aws::String &value)
void SetLastModifiedRegion(const Aws::String &value)
void SetConfig(const Aws::Vector< HoursOfOperationConfig > &value)
void SetTimeZone(const Aws::String &value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
void SetHoursOfOperationId(const Aws::String &value)
void SetHoursOfOperationArn(const Aws::String &value)
void SetName(const Aws::String &value)
void SetHoursOfOperationArn(Aws::String &&value)
void SetLastModifiedRegion(Aws::String &&value)
void SetHoursOfOperationArn(const char *value)
const Aws::String & GetLastModifiedRegion() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
HoursOfOperation & WithHoursOfOperationArn(const Aws::String &value)
HoursOfOperation & WithLastModifiedRegion(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
HoursOfOperation & AddTags(const Aws::String &key, Aws::String &&value)
AWS_CONNECT_API HoursOfOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
HoursOfOperation & WithTimeZone(Aws::String &&value)
HoursOfOperation & WithName(Aws::String &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
HoursOfOperation & WithLastModifiedRegion(const char *value)
HoursOfOperation & WithHoursOfOperationId(const Aws::String &value)
HoursOfOperation & WithDescription(const Aws::String &value)
const Aws::String & GetTimeZone() const
HoursOfOperation & WithTimeZone(const char *value)
const Aws::String & GetName() const
HoursOfOperation & AddTags(const Aws::String &key, const Aws::String &value)
void SetHoursOfOperationId(Aws::String &&value)
const Aws::String & GetHoursOfOperationArn() const
HoursOfOperation & AddTags(const char *key, Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
HoursOfOperation & AddConfig(HoursOfOperationConfig &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
HoursOfOperation & WithHoursOfOperationId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue