AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TargetAudience.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/CompanySize.h>
12#include <aws/partnercentral-marketing/model/Industry.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace PartnerCentralMarketing {
23namespace Model {
24
34 public:
35 AWS_PARTNERCENTRALMARKETING_API TargetAudience() = default;
36 AWS_PARTNERCENTRALMARKETING_API TargetAudience(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_PARTNERCENTRALMARKETING_API TargetAudience& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::Vector<Industry>& GetIndustries() const { return m_industries; }
45 inline bool IndustriesHasBeenSet() const { return m_industriesHasBeenSet; }
46 template <typename IndustriesT = Aws::Vector<Industry>>
47 void SetIndustries(IndustriesT&& value) {
48 m_industriesHasBeenSet = true;
49 m_industries = std::forward<IndustriesT>(value);
50 }
51 template <typename IndustriesT = Aws::Vector<Industry>>
52 TargetAudience& WithIndustries(IndustriesT&& value) {
53 SetIndustries(std::forward<IndustriesT>(value));
54 return *this;
55 }
57 m_industriesHasBeenSet = true;
58 m_industries.push_back(value);
59 return *this;
60 }
62
64
67 inline const Aws::Vector<CompanySize>& GetCompanySizes() const { return m_companySizes; }
68 inline bool CompanySizesHasBeenSet() const { return m_companySizesHasBeenSet; }
69 template <typename CompanySizesT = Aws::Vector<CompanySize>>
70 void SetCompanySizes(CompanySizesT&& value) {
71 m_companySizesHasBeenSet = true;
72 m_companySizes = std::forward<CompanySizesT>(value);
73 }
74 template <typename CompanySizesT = Aws::Vector<CompanySize>>
75 TargetAudience& WithCompanySizes(CompanySizesT&& value) {
76 SetCompanySizes(std::forward<CompanySizesT>(value));
77 return *this;
78 }
80 m_companySizesHasBeenSet = true;
81 m_companySizes.push_back(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetCountries() const { return m_countries; }
91 inline bool CountriesHasBeenSet() const { return m_countriesHasBeenSet; }
92 template <typename CountriesT = Aws::Vector<Aws::String>>
93 void SetCountries(CountriesT&& value) {
94 m_countriesHasBeenSet = true;
95 m_countries = std::forward<CountriesT>(value);
96 }
97 template <typename CountriesT = Aws::Vector<Aws::String>>
98 TargetAudience& WithCountries(CountriesT&& value) {
99 SetCountries(std::forward<CountriesT>(value));
100 return *this;
101 }
102 template <typename CountriesT = Aws::String>
103 TargetAudience& AddCountries(CountriesT&& value) {
104 m_countriesHasBeenSet = true;
105 m_countries.emplace_back(std::forward<CountriesT>(value));
106 return *this;
107 }
109 private:
110 Aws::Vector<Industry> m_industries;
111
112 Aws::Vector<CompanySize> m_companySizes;
113
114 Aws::Vector<Aws::String> m_countries;
115 bool m_industriesHasBeenSet = false;
116 bool m_companySizesHasBeenSet = false;
117 bool m_countriesHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace PartnerCentralMarketing
122} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
TargetAudience & AddCountries(CountriesT &&value)
const Aws::Vector< Aws::String > & GetCountries() const
TargetAudience & WithCountries(CountriesT &&value)
TargetAudience & WithIndustries(IndustriesT &&value)
TargetAudience & AddIndustries(Industry value)
TargetAudience & AddCompanySizes(CompanySize value)
AWS_PARTNERCENTRALMARKETING_API TargetAudience(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Industry > & GetIndustries() const
const Aws::Vector< CompanySize > & GetCompanySizes() const
TargetAudience & WithCompanySizes(CompanySizesT &&value)
AWS_PARTNERCENTRALMARKETING_API TargetAudience()=default
AWS_PARTNERCENTRALMARKETING_API TargetAudience & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector