AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
FieldGroup.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldItem.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCases {
22namespace Model {
23
31 public:
32 AWS_CONNECTCASES_API FieldGroup() = default;
33 AWS_CONNECTCASES_API FieldGroup(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API FieldGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 FieldGroup& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<FieldItem>& GetFields() const { return m_fields; }
60 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
61 template <typename FieldsT = Aws::Vector<FieldItem>>
62 void SetFields(FieldsT&& value) {
63 m_fieldsHasBeenSet = true;
64 m_fields = std::forward<FieldsT>(value);
65 }
66 template <typename FieldsT = Aws::Vector<FieldItem>>
67 FieldGroup& WithFields(FieldsT&& value) {
68 SetFields(std::forward<FieldsT>(value));
69 return *this;
70 }
71 template <typename FieldsT = FieldItem>
72 FieldGroup& AddFields(FieldsT&& value) {
73 m_fieldsHasBeenSet = true;
74 m_fields.emplace_back(std::forward<FieldsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
82 bool m_nameHasBeenSet = false;
83 bool m_fieldsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ConnectCases
88} // namespace Aws
FieldGroup & WithFields(FieldsT &&value)
Definition FieldGroup.h:67
AWS_CONNECTCASES_API FieldGroup(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition FieldGroup.h:41
const Aws::Vector< FieldItem > & GetFields() const
Definition FieldGroup.h:59
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFields(FieldsT &&value)
Definition FieldGroup.h:62
AWS_CONNECTCASES_API FieldGroup()=default
AWS_CONNECTCASES_API FieldGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldGroup & AddFields(FieldsT &&value)
Definition FieldGroup.h:72
FieldGroup & WithName(NameT &&value)
Definition FieldGroup.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue