AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ChannelHandshakePayload.h
1
6#pragma once
7#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
8#include <aws/partnercentral-channel/model/RevokeServicePeriodPayload.h>
9#include <aws/partnercentral-channel/model/StartServicePeriodPayload.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralChannel {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload() = default;
32 AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const StartServicePeriodPayload& GetStartServicePeriodPayload() const { return m_startServicePeriodPayload; }
41 inline bool StartServicePeriodPayloadHasBeenSet() const { return m_startServicePeriodPayloadHasBeenSet; }
42 template <typename StartServicePeriodPayloadT = StartServicePeriodPayload>
43 void SetStartServicePeriodPayload(StartServicePeriodPayloadT&& value) {
44 m_startServicePeriodPayloadHasBeenSet = true;
45 m_startServicePeriodPayload = std::forward<StartServicePeriodPayloadT>(value);
46 }
47 template <typename StartServicePeriodPayloadT = StartServicePeriodPayload>
48 ChannelHandshakePayload& WithStartServicePeriodPayload(StartServicePeriodPayloadT&& value) {
49 SetStartServicePeriodPayload(std::forward<StartServicePeriodPayloadT>(value));
50 return *this;
51 }
53
55
58 inline const RevokeServicePeriodPayload& GetRevokeServicePeriodPayload() const { return m_revokeServicePeriodPayload; }
59 inline bool RevokeServicePeriodPayloadHasBeenSet() const { return m_revokeServicePeriodPayloadHasBeenSet; }
60 template <typename RevokeServicePeriodPayloadT = RevokeServicePeriodPayload>
61 void SetRevokeServicePeriodPayload(RevokeServicePeriodPayloadT&& value) {
62 m_revokeServicePeriodPayloadHasBeenSet = true;
63 m_revokeServicePeriodPayload = std::forward<RevokeServicePeriodPayloadT>(value);
64 }
65 template <typename RevokeServicePeriodPayloadT = RevokeServicePeriodPayload>
66 ChannelHandshakePayload& WithRevokeServicePeriodPayload(RevokeServicePeriodPayloadT&& value) {
67 SetRevokeServicePeriodPayload(std::forward<RevokeServicePeriodPayloadT>(value));
68 return *this;
69 }
71 private:
72 StartServicePeriodPayload m_startServicePeriodPayload;
73
74 RevokeServicePeriodPayload m_revokeServicePeriodPayload;
75 bool m_startServicePeriodPayloadHasBeenSet = false;
76 bool m_revokeServicePeriodPayloadHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace PartnerCentralChannel
81} // namespace Aws
AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelHandshakePayload & WithRevokeServicePeriodPayload(RevokeServicePeriodPayloadT &&value)
void SetStartServicePeriodPayload(StartServicePeriodPayloadT &&value)
void SetRevokeServicePeriodPayload(RevokeServicePeriodPayloadT &&value)
const RevokeServicePeriodPayload & GetRevokeServicePeriodPayload() const
ChannelHandshakePayload & WithStartServicePeriodPayload(StartServicePeriodPayloadT &&value)
const StartServicePeriodPayload & GetStartServicePeriodPayload() const
AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALCHANNEL_API ChannelHandshakePayload()=default
Aws::Utils::Json::JsonValue JsonValue