AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LocalTimeZoneConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConnectCampaignsV2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig() = default;
37 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetDefaultTimeZone() const { return m_defaultTimeZone; }
45 inline bool DefaultTimeZoneHasBeenSet() const { return m_defaultTimeZoneHasBeenSet; }
46 template<typename DefaultTimeZoneT = Aws::String>
47 void SetDefaultTimeZone(DefaultTimeZoneT&& value) { m_defaultTimeZoneHasBeenSet = true; m_defaultTimeZone = std::forward<DefaultTimeZoneT>(value); }
48 template<typename DefaultTimeZoneT = Aws::String>
49 LocalTimeZoneConfig& WithDefaultTimeZone(DefaultTimeZoneT&& value) { SetDefaultTimeZone(std::forward<DefaultTimeZoneT>(value)); return *this;}
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) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection = std::forward<LocalTimeZoneDetectionT>(value); }
58 template<typename LocalTimeZoneDetectionT = Aws::Vector<LocalTimeZoneDetectionType>>
59 LocalTimeZoneConfig& WithLocalTimeZoneDetection(LocalTimeZoneDetectionT&& value) { SetLocalTimeZoneDetection(std::forward<LocalTimeZoneDetectionT>(value)); return *this;}
60 inline LocalTimeZoneConfig& AddLocalTimeZoneDetection(LocalTimeZoneDetectionType value) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection.push_back(value); return *this; }
62 private:
63
64 Aws::String m_defaultTimeZone;
65 bool m_defaultTimeZoneHasBeenSet = false;
66
67 Aws::Vector<LocalTimeZoneDetectionType> m_localTimeZoneDetection;
68 bool m_localTimeZoneDetectionHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace ConnectCampaignsV2
73} // 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