AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaignsV2 {
21namespace Model {
22
28class Schedule {
29 public:
30 AWS_CONNECTCAMPAIGNSV2_API Schedule() = default;
31 AWS_CONNECTCAMPAIGNSV2_API Schedule(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
38 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
39 template <typename StartTimeT = Aws::Utils::DateTime>
40 void SetStartTime(StartTimeT&& value) {
41 m_startTimeHasBeenSet = true;
42 m_startTime = std::forward<StartTimeT>(value);
43 }
44 template <typename StartTimeT = Aws::Utils::DateTime>
45 Schedule& WithStartTime(StartTimeT&& value) {
46 SetStartTime(std::forward<StartTimeT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
54 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
55 template <typename EndTimeT = Aws::Utils::DateTime>
56 void SetEndTime(EndTimeT&& value) {
57 m_endTimeHasBeenSet = true;
58 m_endTime = std::forward<EndTimeT>(value);
59 }
60 template <typename EndTimeT = Aws::Utils::DateTime>
61 Schedule& WithEndTime(EndTimeT&& value) {
62 SetEndTime(std::forward<EndTimeT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
70 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
71 template <typename RefreshFrequencyT = Aws::String>
72 void SetRefreshFrequency(RefreshFrequencyT&& value) {
73 m_refreshFrequencyHasBeenSet = true;
74 m_refreshFrequency = std::forward<RefreshFrequencyT>(value);
75 }
76 template <typename RefreshFrequencyT = Aws::String>
77 Schedule& WithRefreshFrequency(RefreshFrequencyT&& value) {
78 SetRefreshFrequency(std::forward<RefreshFrequencyT>(value));
79 return *this;
80 }
82 private:
83 Aws::Utils::DateTime m_startTime{};
84
85 Aws::Utils::DateTime m_endTime{};
86
87 Aws::String m_refreshFrequency;
88 bool m_startTimeHasBeenSet = false;
89 bool m_endTimeHasBeenSet = false;
90 bool m_refreshFrequencyHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ConnectCampaignsV2
95} // namespace Aws
void SetEndTime(EndTimeT &&value)
Definition Schedule.h:56
const Aws::Utils::DateTime & GetStartTime() const
Definition Schedule.h:37
Schedule & WithEndTime(EndTimeT &&value)
Definition Schedule.h:61
Schedule & WithStartTime(StartTimeT &&value)
Definition Schedule.h:45
const Aws::String & GetRefreshFrequency() const
Definition Schedule.h:69
void SetStartTime(StartTimeT &&value)
Definition Schedule.h:40
AWS_CONNECTCAMPAIGNSV2_API Schedule()=default
AWS_CONNECTCAMPAIGNSV2_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRefreshFrequency(RefreshFrequencyT &&value)
Definition Schedule.h:72
Schedule & WithRefreshFrequency(RefreshFrequencyT &&value)
Definition Schedule.h:77
AWS_CONNECTCAMPAIGNSV2_API Schedule(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndTime() const
Definition Schedule.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue