AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LayoutSections.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connectcases/model/Section.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCases
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CONNECTCASES_API LayoutSections() = default;
38 AWS_CONNECTCASES_API LayoutSections(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCASES_API LayoutSections& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::Vector<Section>& GetSections() const { return m_sections; }
46 inline bool SectionsHasBeenSet() const { return m_sectionsHasBeenSet; }
47 template<typename SectionsT = Aws::Vector<Section>>
48 void SetSections(SectionsT&& value) { m_sectionsHasBeenSet = true; m_sections = std::forward<SectionsT>(value); }
49 template<typename SectionsT = Aws::Vector<Section>>
50 LayoutSections& WithSections(SectionsT&& value) { SetSections(std::forward<SectionsT>(value)); return *this;}
51 template<typename SectionsT = Section>
52 LayoutSections& AddSections(SectionsT&& value) { m_sectionsHasBeenSet = true; m_sections.emplace_back(std::forward<SectionsT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Section> m_sections;
57 bool m_sectionsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace ConnectCases
62} // 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