AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartServicePeriodPayload.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
10#include <aws/partnercentral-channel/model/ServicePeriodType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralChannel {
22namespace Model {
23
31 public:
32 AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload() = default;
33 AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetProgramManagementAccountIdentifier() const { return m_programManagementAccountIdentifier; }
42 inline bool ProgramManagementAccountIdentifierHasBeenSet() const { return m_programManagementAccountIdentifierHasBeenSet; }
43 template <typename ProgramManagementAccountIdentifierT = Aws::String>
44 void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
45 m_programManagementAccountIdentifierHasBeenSet = true;
46 m_programManagementAccountIdentifier = std::forward<ProgramManagementAccountIdentifierT>(value);
47 }
48 template <typename ProgramManagementAccountIdentifierT = Aws::String>
49 StartServicePeriodPayload& WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
50 SetProgramManagementAccountIdentifier(std::forward<ProgramManagementAccountIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNote() const { return m_note; }
60 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
61 template <typename NoteT = Aws::String>
62 void SetNote(NoteT&& value) {
63 m_noteHasBeenSet = true;
64 m_note = std::forward<NoteT>(value);
65 }
66 template <typename NoteT = Aws::String>
68 SetNote(std::forward<NoteT>(value));
69 return *this;
70 }
72
74
77 inline ServicePeriodType GetServicePeriodType() const { return m_servicePeriodType; }
78 inline bool ServicePeriodTypeHasBeenSet() const { return m_servicePeriodTypeHasBeenSet; }
80 m_servicePeriodTypeHasBeenSet = true;
81 m_servicePeriodType = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMinimumNoticeDays() const { return m_minimumNoticeDays; }
94 inline bool MinimumNoticeDaysHasBeenSet() const { return m_minimumNoticeDaysHasBeenSet; }
95 template <typename MinimumNoticeDaysT = Aws::String>
96 void SetMinimumNoticeDays(MinimumNoticeDaysT&& value) {
97 m_minimumNoticeDaysHasBeenSet = true;
98 m_minimumNoticeDays = std::forward<MinimumNoticeDaysT>(value);
99 }
100 template <typename MinimumNoticeDaysT = Aws::String>
102 SetMinimumNoticeDays(std::forward<MinimumNoticeDaysT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
112 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
113 template <typename EndDateT = Aws::Utils::DateTime>
114 void SetEndDate(EndDateT&& value) {
115 m_endDateHasBeenSet = true;
116 m_endDate = std::forward<EndDateT>(value);
117 }
118 template <typename EndDateT = Aws::Utils::DateTime>
120 SetEndDate(std::forward<EndDateT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_programManagementAccountIdentifier;
126
127 Aws::String m_note;
128
130
131 Aws::String m_minimumNoticeDays;
132
133 Aws::Utils::DateTime m_endDate{};
134 bool m_programManagementAccountIdentifierHasBeenSet = false;
135 bool m_noteHasBeenSet = false;
136 bool m_servicePeriodTypeHasBeenSet = false;
137 bool m_minimumNoticeDaysHasBeenSet = false;
138 bool m_endDateHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace PartnerCentralChannel
143} // namespace Aws
StartServicePeriodPayload & WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
StartServicePeriodPayload & WithMinimumNoticeDays(MinimumNoticeDaysT &&value)
AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
StartServicePeriodPayload & WithServicePeriodType(ServicePeriodType value)
void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload()=default
AWS_PARTNERCENTRALCHANNEL_API StartServicePeriodPayload(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue