AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCampaignsV2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod() = default;
35 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 RestrictedPeriod& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
56 template<typename StartDateT = Aws::String>
57 RestrictedPeriod& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
59
61
62 inline const Aws::String& GetEndDate() const { return m_endDate; }
63 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
64 template<typename EndDateT = Aws::String>
65 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
66 template<typename EndDateT = Aws::String>
67 RestrictedPeriod& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
69 private:
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73
74 Aws::String m_startDate;
75 bool m_startDateHasBeenSet = false;
76
77 Aws::String m_endDate;
78 bool m_endDateHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ConnectCampaignsV2
83} // 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