AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaignsV2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTCAMPAIGNSV2_API Schedule() = default;
36 AWS_CONNECTCAMPAIGNSV2_API Schedule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCAMPAIGNSV2_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
44 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
45 template<typename StartTimeT = Aws::Utils::DateTime>
46 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
47 template<typename StartTimeT = Aws::Utils::DateTime>
48 Schedule& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
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) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
57 template<typename EndTimeT = Aws::Utils::DateTime>
58 Schedule& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
60
62
63 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
64 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
65 template<typename RefreshFrequencyT = Aws::String>
66 void SetRefreshFrequency(RefreshFrequencyT&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::forward<RefreshFrequencyT>(value); }
67 template<typename RefreshFrequencyT = Aws::String>
68 Schedule& WithRefreshFrequency(RefreshFrequencyT&& value) { SetRefreshFrequency(std::forward<RefreshFrequencyT>(value)); return *this;}
70 private:
71
72 Aws::Utils::DateTime m_startTime{};
73 bool m_startTimeHasBeenSet = false;
74
75 Aws::Utils::DateTime m_endTime{};
76 bool m_endTimeHasBeenSet = false;
77
78 Aws::String m_refreshFrequency;
79 bool m_refreshFrequencyHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ConnectCampaignsV2
84} // namespace Aws
void SetEndTime(EndTimeT &&value)
Definition Schedule.h:56
const Aws::Utils::DateTime & GetStartTime() const
Definition Schedule.h:43
Schedule & WithEndTime(EndTimeT &&value)
Definition Schedule.h:58
Schedule & WithStartTime(StartTimeT &&value)
Definition Schedule.h:48
const Aws::String & GetRefreshFrequency() const
Definition Schedule.h:63
void SetStartTime(StartTimeT &&value)
Definition Schedule.h:46
AWS_CONNECTCAMPAIGNSV2_API Schedule()=default
AWS_CONNECTCAMPAIGNSV2_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRefreshFrequency(RefreshFrequencyT &&value)
Definition Schedule.h:66
Schedule & WithRefreshFrequency(RefreshFrequencyT &&value)
Definition Schedule.h:68
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