AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LayoutSections.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/Section.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 ConnectCases {
21namespace Model {
22
31 public:
32 AWS_CONNECTCASES_API LayoutSections() = default;
33 AWS_CONNECTCASES_API LayoutSections(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API LayoutSections& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::Vector<Section>& GetSections() const { return m_sections; }
40 inline bool SectionsHasBeenSet() const { return m_sectionsHasBeenSet; }
41 template <typename SectionsT = Aws::Vector<Section>>
42 void SetSections(SectionsT&& value) {
43 m_sectionsHasBeenSet = true;
44 m_sections = std::forward<SectionsT>(value);
45 }
46 template <typename SectionsT = Aws::Vector<Section>>
47 LayoutSections& WithSections(SectionsT&& value) {
48 SetSections(std::forward<SectionsT>(value));
49 return *this;
50 }
51 template <typename SectionsT = Section>
52 LayoutSections& AddSections(SectionsT&& value) {
53 m_sectionsHasBeenSet = true;
54 m_sections.emplace_back(std::forward<SectionsT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Section> m_sections;
60 bool m_sectionsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace ConnectCases
65} // namespace Aws
AWS_CONNECTCASES_API LayoutSections & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API LayoutSections()=default
LayoutSections & AddSections(SectionsT &&value)
LayoutSections & WithSections(SectionsT &&value)
AWS_CONNECTCASES_API LayoutSections(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Section > & GetSections() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue