AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LocalTimeZoneConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCampaignsV2 {
22namespace Model {
23
30 public:
31 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig() = default;
32 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetDefaultTimeZone() const { return m_defaultTimeZone; }
39 inline bool DefaultTimeZoneHasBeenSet() const { return m_defaultTimeZoneHasBeenSet; }
40 template <typename DefaultTimeZoneT = Aws::String>
41 void SetDefaultTimeZone(DefaultTimeZoneT&& value) {
42 m_defaultTimeZoneHasBeenSet = true;
43 m_defaultTimeZone = std::forward<DefaultTimeZoneT>(value);
44 }
45 template <typename DefaultTimeZoneT = Aws::String>
46 LocalTimeZoneConfig& WithDefaultTimeZone(DefaultTimeZoneT&& value) {
47 SetDefaultTimeZone(std::forward<DefaultTimeZoneT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::Vector<LocalTimeZoneDetectionType>& GetLocalTimeZoneDetection() const { return m_localTimeZoneDetection; }
55 inline bool LocalTimeZoneDetectionHasBeenSet() const { return m_localTimeZoneDetectionHasBeenSet; }
56 template <typename LocalTimeZoneDetectionT = Aws::Vector<LocalTimeZoneDetectionType>>
57 void SetLocalTimeZoneDetection(LocalTimeZoneDetectionT&& value) {
58 m_localTimeZoneDetectionHasBeenSet = true;
59 m_localTimeZoneDetection = std::forward<LocalTimeZoneDetectionT>(value);
60 }
61 template <typename LocalTimeZoneDetectionT = Aws::Vector<LocalTimeZoneDetectionType>>
62 LocalTimeZoneConfig& WithLocalTimeZoneDetection(LocalTimeZoneDetectionT&& value) {
63 SetLocalTimeZoneDetection(std::forward<LocalTimeZoneDetectionT>(value));
64 return *this;
65 }
67 m_localTimeZoneDetectionHasBeenSet = true;
68 m_localTimeZoneDetection.push_back(value);
69 return *this;
70 }
72 private:
73 Aws::String m_defaultTimeZone;
74
75 Aws::Vector<LocalTimeZoneDetectionType> m_localTimeZoneDetection;
76 bool m_defaultTimeZoneHasBeenSet = false;
77 bool m_localTimeZoneDetectionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ConnectCampaignsV2
82} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LocalTimeZoneDetectionType > & GetLocalTimeZoneDetection() const
LocalTimeZoneConfig & AddLocalTimeZoneDetection(LocalTimeZoneDetectionType value)
LocalTimeZoneConfig & WithDefaultTimeZone(DefaultTimeZoneT &&value)
LocalTimeZoneConfig & WithLocalTimeZoneDetection(LocalTimeZoneDetectionT &&value)
void SetLocalTimeZoneDetection(LocalTimeZoneDetectionT &&value)
AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue