AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Section.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace APIPortal {
21namespace Model {
22
29class Section {
30 public:
31 AWS_APIPORTAL_API Section() = default;
32 AWS_APIPORTAL_API Section(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIPORTAL_API Section& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetSectionName() const { return m_sectionName; }
42 inline bool SectionNameHasBeenSet() const { return m_sectionNameHasBeenSet; }
43 template <typename SectionNameT = Aws::String>
44 void SetSectionName(SectionNameT&& value) {
45 m_sectionNameHasBeenSet = true;
46 m_sectionName = std::forward<SectionNameT>(value);
47 }
48 template <typename SectionNameT = Aws::String>
49 Section& WithSectionName(SectionNameT&& value) {
50 SetSectionName(std::forward<SectionNameT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::Vector<Aws::String>& GetProductApiPageArns() const { return m_productApiPageArns; }
58 inline bool ProductApiPageArnsHasBeenSet() const { return m_productApiPageArnsHasBeenSet; }
59 template <typename ProductApiPageArnsT = Aws::Vector<Aws::String>>
60 void SetProductApiPageArns(ProductApiPageArnsT&& value) {
61 m_productApiPageArnsHasBeenSet = true;
62 m_productApiPageArns = std::forward<ProductApiPageArnsT>(value);
63 }
64 template <typename ProductApiPageArnsT = Aws::Vector<Aws::String>>
65 Section& WithProductApiPageArns(ProductApiPageArnsT&& value) {
66 SetProductApiPageArns(std::forward<ProductApiPageArnsT>(value));
67 return *this;
68 }
69 template <typename ProductApiPageArnsT = Aws::String>
70 Section& AddProductApiPageArns(ProductApiPageArnsT&& value) {
71 m_productApiPageArnsHasBeenSet = true;
72 m_productApiPageArns.emplace_back(std::forward<ProductApiPageArnsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_sectionName;
78
79 Aws::Vector<Aws::String> m_productApiPageArns;
80 bool m_sectionNameHasBeenSet = false;
81 bool m_productApiPageArnsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace APIPortal
86} // namespace Aws
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetProductApiPageArns() const
Definition Section.h:57
Section & WithProductApiPageArns(ProductApiPageArnsT &&value)
Definition Section.h:65
Section & WithSectionName(SectionNameT &&value)
Definition Section.h:49
const Aws::String & GetSectionName() const
Definition Section.h:41
AWS_APIPORTAL_API Section()=default
bool ProductApiPageArnsHasBeenSet() const
Definition Section.h:58
void SetSectionName(SectionNameT &&value)
Definition Section.h:44
Section & AddProductApiPageArns(ProductApiPageArnsT &&value)
Definition Section.h:70
AWS_APIPORTAL_API Section(Aws::Utils::Json::JsonView jsonValue)
void SetProductApiPageArns(ProductApiPageArnsT &&value)
Definition Section.h:60
AWS_APIPORTAL_API Section & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SectionNameHasBeenSet() const
Definition Section.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue