AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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