AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
OutboundRequest.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/ChannelSubtypeParameters.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCampaignsV2 {
22namespace Model {
23
30 public:
31 AWS_CONNECTCAMPAIGNSV2_API OutboundRequest() = default;
32 AWS_CONNECTCAMPAIGNSV2_API OutboundRequest(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API OutboundRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetClientToken() const { return m_clientToken; }
39 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
40 template <typename ClientTokenT = Aws::String>
41 void SetClientToken(ClientTokenT&& value) {
42 m_clientTokenHasBeenSet = true;
43 m_clientToken = std::forward<ClientTokenT>(value);
44 }
45 template <typename ClientTokenT = Aws::String>
46 OutboundRequest& WithClientToken(ClientTokenT&& value) {
47 SetClientToken(std::forward<ClientTokenT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
55 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
56 template <typename ExpirationTimeT = Aws::Utils::DateTime>
57 void SetExpirationTime(ExpirationTimeT&& value) {
58 m_expirationTimeHasBeenSet = true;
59 m_expirationTime = std::forward<ExpirationTimeT>(value);
60 }
61 template <typename ExpirationTimeT = Aws::Utils::DateTime>
62 OutboundRequest& WithExpirationTime(ExpirationTimeT&& value) {
63 SetExpirationTime(std::forward<ExpirationTimeT>(value));
64 return *this;
65 }
67
69
70 inline const ChannelSubtypeParameters& GetChannelSubtypeParameters() const { return m_channelSubtypeParameters; }
71 inline bool ChannelSubtypeParametersHasBeenSet() const { return m_channelSubtypeParametersHasBeenSet; }
72 template <typename ChannelSubtypeParametersT = ChannelSubtypeParameters>
73 void SetChannelSubtypeParameters(ChannelSubtypeParametersT&& value) {
74 m_channelSubtypeParametersHasBeenSet = true;
75 m_channelSubtypeParameters = std::forward<ChannelSubtypeParametersT>(value);
76 }
77 template <typename ChannelSubtypeParametersT = ChannelSubtypeParameters>
78 OutboundRequest& WithChannelSubtypeParameters(ChannelSubtypeParametersT&& value) {
79 SetChannelSubtypeParameters(std::forward<ChannelSubtypeParametersT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_clientToken;
85
86 Aws::Utils::DateTime m_expirationTime{};
87
88 ChannelSubtypeParameters m_channelSubtypeParameters;
89 bool m_clientTokenHasBeenSet = false;
90 bool m_expirationTimeHasBeenSet = false;
91 bool m_channelSubtypeParametersHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace ConnectCampaignsV2
96} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExpirationTime(ExpirationTimeT &&value)
AWS_CONNECTCAMPAIGNSV2_API OutboundRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
OutboundRequest & WithClientToken(ClientTokenT &&value)
OutboundRequest & WithChannelSubtypeParameters(ChannelSubtypeParametersT &&value)
AWS_CONNECTCAMPAIGNSV2_API OutboundRequest()=default
OutboundRequest & WithExpirationTime(ExpirationTimeT &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
const ChannelSubtypeParameters & GetChannelSubtypeParameters() const
void SetChannelSubtypeParameters(ChannelSubtypeParametersT &&value)
AWS_CONNECTCAMPAIGNSV2_API OutboundRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue