AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CampaignAssetLayout.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/CampaignAssetLayoutOption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace PartnerCentralMarketing {
22namespace Model {
23
31 public:
32 AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout() = default;
33 AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
43 inline const Aws::String& GetSelected() const { return m_selected; }
44 inline bool SelectedHasBeenSet() const { return m_selectedHasBeenSet; }
45 template <typename SelectedT = Aws::String>
46 void SetSelected(SelectedT&& value) {
47 m_selectedHasBeenSet = true;
48 m_selected = std::forward<SelectedT>(value);
49 }
50 template <typename SelectedT = Aws::String>
51 CampaignAssetLayout& WithSelected(SelectedT&& value) {
52 SetSelected(std::forward<SelectedT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<CampaignAssetLayoutOption>& GetOptions() const { return m_options; }
62 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
63 template <typename OptionsT = Aws::Vector<CampaignAssetLayoutOption>>
64 void SetOptions(OptionsT&& value) {
65 m_optionsHasBeenSet = true;
66 m_options = std::forward<OptionsT>(value);
67 }
68 template <typename OptionsT = Aws::Vector<CampaignAssetLayoutOption>>
69 CampaignAssetLayout& WithOptions(OptionsT&& value) {
70 SetOptions(std::forward<OptionsT>(value));
71 return *this;
72 }
73 template <typename OptionsT = CampaignAssetLayoutOption>
74 CampaignAssetLayout& AddOptions(OptionsT&& value) {
75 m_optionsHasBeenSet = true;
76 m_options.emplace_back(std::forward<OptionsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_selected;
82
84 bool m_selectedHasBeenSet = false;
85 bool m_optionsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace PartnerCentralMarketing
90} // namespace Aws
CampaignAssetLayout & WithOptions(OptionsT &&value)
CampaignAssetLayout & WithSelected(SelectedT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< CampaignAssetLayoutOption > & GetOptions() const
AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PARTNERCENTRALMARKETING_API CampaignAssetLayout()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector