AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
Marketing.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/model/MarketingSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/AwsFundingUsed.h>
12#include <aws/partnercentral-selling/model/Channel.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PartnerCentralSelling
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PARTNERCENTRALSELLING_API Marketing() = default;
40 AWS_PARTNERCENTRALSELLING_API Marketing(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PARTNERCENTRALSELLING_API Marketing& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetCampaignName() const { return m_campaignName; }
55 inline bool CampaignNameHasBeenSet() const { return m_campaignNameHasBeenSet; }
56 template<typename CampaignNameT = Aws::String>
57 void SetCampaignName(CampaignNameT&& value) { m_campaignNameHasBeenSet = true; m_campaignName = std::forward<CampaignNameT>(value); }
58 template<typename CampaignNameT = Aws::String>
59 Marketing& WithCampaignName(CampaignNameT&& value) { SetCampaignName(std::forward<CampaignNameT>(value)); return *this;}
61
63
71 inline MarketingSource GetSource() const { return m_source; }
72 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
73 inline void SetSource(MarketingSource value) { m_sourceHasBeenSet = true; m_source = value; }
74 inline Marketing& WithSource(MarketingSource value) { SetSource(value); return *this;}
76
78
91 inline const Aws::Vector<Aws::String>& GetUseCases() const { return m_useCases; }
92 inline bool UseCasesHasBeenSet() const { return m_useCasesHasBeenSet; }
93 template<typename UseCasesT = Aws::Vector<Aws::String>>
94 void SetUseCases(UseCasesT&& value) { m_useCasesHasBeenSet = true; m_useCases = std::forward<UseCasesT>(value); }
95 template<typename UseCasesT = Aws::Vector<Aws::String>>
96 Marketing& WithUseCases(UseCasesT&& value) { SetUseCases(std::forward<UseCasesT>(value)); return *this;}
97 template<typename UseCasesT = Aws::String>
98 Marketing& AddUseCases(UseCasesT&& value) { m_useCasesHasBeenSet = true; m_useCases.emplace_back(std::forward<UseCasesT>(value)); return *this; }
100
102
108 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
109 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
110 template<typename ChannelsT = Aws::Vector<Channel>>
111 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
112 template<typename ChannelsT = Aws::Vector<Channel>>
113 Marketing& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
114 inline Marketing& AddChannels(Channel value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
116
118
122 inline AwsFundingUsed GetAwsFundingUsed() const { return m_awsFundingUsed; }
123 inline bool AwsFundingUsedHasBeenSet() const { return m_awsFundingUsedHasBeenSet; }
124 inline void SetAwsFundingUsed(AwsFundingUsed value) { m_awsFundingUsedHasBeenSet = true; m_awsFundingUsed = value; }
125 inline Marketing& WithAwsFundingUsed(AwsFundingUsed value) { SetAwsFundingUsed(value); return *this;}
127 private:
128
129 Aws::String m_campaignName;
130 bool m_campaignNameHasBeenSet = false;
131
133 bool m_sourceHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_useCases;
136 bool m_useCasesHasBeenSet = false;
137
138 Aws::Vector<Channel> m_channels;
139 bool m_channelsHasBeenSet = false;
140
141 AwsFundingUsed m_awsFundingUsed{AwsFundingUsed::NOT_SET};
142 bool m_awsFundingUsedHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace PartnerCentralSelling
147} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Marketing & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetUseCases() const
Definition Marketing.h:91
const Aws::String & GetCampaignName() const
Definition Marketing.h:54
Marketing & WithChannels(ChannelsT &&value)
Definition Marketing.h:113
void SetCampaignName(CampaignNameT &&value)
Definition Marketing.h:57
Marketing & AddUseCases(UseCasesT &&value)
Definition Marketing.h:98
void SetSource(MarketingSource value)
Definition Marketing.h:73
Marketing & AddChannels(Channel value)
Definition Marketing.h:114
Marketing & WithCampaignName(CampaignNameT &&value)
Definition Marketing.h:59
AWS_PARTNERCENTRALSELLING_API Marketing(Aws::Utils::Json::JsonView jsonValue)
Marketing & WithUseCases(UseCasesT &&value)
Definition Marketing.h:96
AWS_PARTNERCENTRALSELLING_API Marketing()=default
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
Marketing & WithSource(MarketingSource value)
Definition Marketing.h:74
const Aws::Vector< Channel > & GetChannels() const
Definition Marketing.h:108
void SetAwsFundingUsed(AwsFundingUsed value)
Definition Marketing.h:124
Marketing & WithAwsFundingUsed(AwsFundingUsed value)
Definition Marketing.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue