AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
RestrictedPeriod.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConnectCampaignsV2 {
20namespace Model {
21
28 public:
29 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod() = default;
30 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
44 RestrictedPeriod& WithName(NameT&& value) {
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetStartDate() const { return m_startDate; }
53 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
54 template <typename StartDateT = Aws::String>
55 void SetStartDate(StartDateT&& value) {
56 m_startDateHasBeenSet = true;
57 m_startDate = std::forward<StartDateT>(value);
58 }
59 template <typename StartDateT = Aws::String>
60 RestrictedPeriod& WithStartDate(StartDateT&& value) {
61 SetStartDate(std::forward<StartDateT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetEndDate() const { return m_endDate; }
69 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
70 template <typename EndDateT = Aws::String>
71 void SetEndDate(EndDateT&& value) {
72 m_endDateHasBeenSet = true;
73 m_endDate = std::forward<EndDateT>(value);
74 }
75 template <typename EndDateT = Aws::String>
76 RestrictedPeriod& WithEndDate(EndDateT&& value) {
77 SetEndDate(std::forward<EndDateT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_name;
83
84 Aws::String m_startDate;
85
86 Aws::String m_endDate;
87 bool m_nameHasBeenSet = false;
88 bool m_startDateHasBeenSet = false;
89 bool m_endDateHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ConnectCampaignsV2
94} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod(Aws::Utils::Json::JsonView jsonValue)
RestrictedPeriod & WithName(NameT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
RestrictedPeriod & WithEndDate(EndDateT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod()=default
RestrictedPeriod & WithStartDate(StartDateT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue