AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
LayoutPreview.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10#include <aws/partnercentral-marketing/model/LayoutFormat.h>
11#include <aws/partnercentral-marketing/model/LayoutPageType.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
36 public:
37 AWS_PARTNERCENTRALMARKETING_API LayoutPreview() = default;
38 AWS_PARTNERCENTRALMARKETING_API LayoutPreview(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_PARTNERCENTRALMARKETING_API LayoutPreview& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline LayoutFormat GetFormat() const { return m_format; }
47 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
48 inline void SetFormat(LayoutFormat value) {
49 m_formatHasBeenSet = true;
50 m_format = value;
51 }
53 SetFormat(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetUrl() const { return m_url; }
63 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
64 template <typename UrlT = Aws::String>
65 void SetUrl(UrlT&& value) {
66 m_urlHasBeenSet = true;
67 m_url = std::forward<UrlT>(value);
68 }
69 template <typename UrlT = Aws::String>
70 LayoutPreview& WithUrl(UrlT&& value) {
71 SetUrl(std::forward<UrlT>(value));
72 return *this;
73 }
75
77
85 inline LayoutPageType GetPageType() const { return m_pageType; }
86 inline bool PageTypeHasBeenSet() const { return m_pageTypeHasBeenSet; }
87 inline void SetPageType(LayoutPageType value) {
88 m_pageTypeHasBeenSet = true;
89 m_pageType = value;
90 }
92 SetPageType(value);
93 return *this;
94 }
96 private:
98
99 Aws::String m_url;
100
102 bool m_formatHasBeenSet = false;
103 bool m_urlHasBeenSet = false;
104 bool m_pageTypeHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace PartnerCentralMarketing
109} // namespace Aws
LayoutPreview & WithFormat(LayoutFormat value)
AWS_PARTNERCENTRALMARKETING_API LayoutPreview()=default
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PARTNERCENTRALMARKETING_API LayoutPreview & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
LayoutPreview & WithPageType(LayoutPageType value)
AWS_PARTNERCENTRALMARKETING_API LayoutPreview(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String