AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CampaignSummary.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connectcampaignsv2/model/Schedule.h>
11#include <aws/connectcampaignsv2/model/ChannelSubtype.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCampaignsV2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTCAMPAIGNSV2_API CampaignSummary() = default;
38 AWS_CONNECTCAMPAIGNSV2_API CampaignSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNSV2_API CampaignSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 CampaignSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
55 inline const Aws::String& GetArn() const { return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 template<typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
59 template<typename ArnT = Aws::String>
60 CampaignSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
62
64
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template<typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 CampaignSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
75 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
76 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
77 template<typename ConnectInstanceIdT = Aws::String>
78 void SetConnectInstanceId(ConnectInstanceIdT&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::forward<ConnectInstanceIdT>(value); }
79 template<typename ConnectInstanceIdT = Aws::String>
80 CampaignSummary& WithConnectInstanceId(ConnectInstanceIdT&& value) { SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value)); return *this;}
82
84
85 inline const Aws::Vector<ChannelSubtype>& GetChannelSubtypes() const { return m_channelSubtypes; }
86 inline bool ChannelSubtypesHasBeenSet() const { return m_channelSubtypesHasBeenSet; }
87 template<typename ChannelSubtypesT = Aws::Vector<ChannelSubtype>>
88 void SetChannelSubtypes(ChannelSubtypesT&& value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes = std::forward<ChannelSubtypesT>(value); }
89 template<typename ChannelSubtypesT = Aws::Vector<ChannelSubtype>>
90 CampaignSummary& WithChannelSubtypes(ChannelSubtypesT&& value) { SetChannelSubtypes(std::forward<ChannelSubtypesT>(value)); return *this;}
91 inline CampaignSummary& AddChannelSubtypes(ChannelSubtype value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes.push_back(value); return *this; }
93
95
96 inline const Schedule& GetSchedule() const { return m_schedule; }
97 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
98 template<typename ScheduleT = Schedule>
99 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
100 template<typename ScheduleT = Schedule>
101 CampaignSummary& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
103
105
106 inline const Aws::String& GetConnectCampaignFlowArn() const { return m_connectCampaignFlowArn; }
107 inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; }
108 template<typename ConnectCampaignFlowArnT = Aws::String>
109 void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::forward<ConnectCampaignFlowArnT>(value); }
110 template<typename ConnectCampaignFlowArnT = Aws::String>
111 CampaignSummary& WithConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { SetConnectCampaignFlowArn(std::forward<ConnectCampaignFlowArnT>(value)); return *this;}
113 private:
114
115 Aws::String m_id;
116 bool m_idHasBeenSet = false;
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_connectInstanceId;
125 bool m_connectInstanceIdHasBeenSet = false;
126
127 Aws::Vector<ChannelSubtype> m_channelSubtypes;
128 bool m_channelSubtypesHasBeenSet = false;
129
130 Schedule m_schedule;
131 bool m_scheduleHasBeenSet = false;
132
133 Aws::String m_connectCampaignFlowArn;
134 bool m_connectCampaignFlowArnHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ConnectCampaignsV2
139} // namespace Aws
void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
CampaignSummary & WithName(NameT &&value)
AWS_CONNECTCAMPAIGNSV2_API CampaignSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectCampaignFlowArn() const
AWS_CONNECTCAMPAIGNSV2_API CampaignSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API CampaignSummary()=default
const Aws::Vector< ChannelSubtype > & GetChannelSubtypes() const
CampaignSummary & WithSchedule(ScheduleT &&value)
CampaignSummary & WithChannelSubtypes(ChannelSubtypesT &&value)
void SetConnectInstanceId(ConnectInstanceIdT &&value)
void SetChannelSubtypes(ChannelSubtypesT &&value)
CampaignSummary & WithConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
CampaignSummary & WithConnectInstanceId(ConnectInstanceIdT &&value)
CampaignSummary & AddChannelSubtypes(ChannelSubtype value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue