AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HoursOfOperationIdT = Aws::String>
51 void SetHoursOfOperationId(HoursOfOperationIdT&& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = std::forward<HoursOfOperationIdT>(value); }
52 template<typename HoursOfOperationIdT = Aws::String>
53 HoursOfOperation& WithHoursOfOperationId(HoursOfOperationIdT&& value) { SetHoursOfOperationId(std::forward<HoursOfOperationIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetHoursOfOperationArn() const { return m_hoursOfOperationArn; }
61 inline bool HoursOfOperationArnHasBeenSet() const { return m_hoursOfOperationArnHasBeenSet; }
62 template<typename HoursOfOperationArnT = Aws::String>
63 void SetHoursOfOperationArn(HoursOfOperationArnT&& value) { m_hoursOfOperationArnHasBeenSet = true; m_hoursOfOperationArn = std::forward<HoursOfOperationArnT>(value); }
64 template<typename HoursOfOperationArnT = Aws::String>
65 HoursOfOperation& WithHoursOfOperationArn(HoursOfOperationArnT&& value) { SetHoursOfOperationArn(std::forward<HoursOfOperationArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 HoursOfOperation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 HoursOfOperation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
96 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
97 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
98 template<typename TimeZoneT = Aws::String>
99 void SetTimeZone(TimeZoneT&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::forward<TimeZoneT>(value); }
100 template<typename TimeZoneT = Aws::String>
101 HoursOfOperation& WithTimeZone(TimeZoneT&& value) { SetTimeZone(std::forward<TimeZoneT>(value)); return *this;}
103
105
108 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const { return m_config; }
109 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
110 template<typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
111 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
112 template<typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
113 HoursOfOperation& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
114 template<typename ConfigT = HoursOfOperationConfig>
115 HoursOfOperation& AddConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config.emplace_back(std::forward<ConfigT>(value)); return *this; }
117
119
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 HoursOfOperation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
129 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 HoursOfOperation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
140 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
141 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
142 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
143 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
144 HoursOfOperation& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
146
148
151 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
152 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
153 template<typename LastModifiedRegionT = Aws::String>
154 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
155 template<typename LastModifiedRegionT = Aws::String>
156 HoursOfOperation& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
158 private:
159
160 Aws::String m_hoursOfOperationId;
161 bool m_hoursOfOperationIdHasBeenSet = false;
162
163 Aws::String m_hoursOfOperationArn;
164 bool m_hoursOfOperationArnHasBeenSet = false;
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_timeZone;
173 bool m_timeZoneHasBeenSet = false;
174
176 bool m_configHasBeenSet = false;
177
179 bool m_tagsHasBeenSet = false;
180
181 Aws::Utils::DateTime m_lastModifiedTime{};
182 bool m_lastModifiedTimeHasBeenSet = false;
183
184 Aws::String m_lastModifiedRegion;
185 bool m_lastModifiedRegionHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Connect
190} // namespace Aws
HoursOfOperation & AddConfig(ConfigT &&value)
void SetHoursOfOperationArn(HoursOfOperationArnT &&value)
const Aws::String & GetHoursOfOperationId() const
HoursOfOperation & WithName(NameT &&value)
HoursOfOperation & WithTimeZone(TimeZoneT &&value)
AWS_CONNECT_API HoursOfOperation(Aws::Utils::Json::JsonView jsonValue)
HoursOfOperation & WithHoursOfOperationArn(HoursOfOperationArnT &&value)
const Aws::String & GetDescription() const
HoursOfOperation & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API HoursOfOperation()=default
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
HoursOfOperation & WithTags(TagsT &&value)
HoursOfOperation & WithLastModifiedTime(LastModifiedTimeT &&value)
HoursOfOperation & WithLastModifiedRegion(LastModifiedRegionT &&value)
HoursOfOperation & WithConfig(ConfigT &&value)
const Aws::String & GetLastModifiedRegion() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API HoursOfOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetTimeZone() const
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::String & GetName() const
const Aws::String & GetHoursOfOperationArn() const
void SetHoursOfOperationId(HoursOfOperationIdT &&value)
HoursOfOperation & WithHoursOfOperationId(HoursOfOperationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
HoursOfOperation & WithDescription(DescriptionT &&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