AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFields(const Aws::Vector<FieldItem>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
50 inline void SetFields(Aws::Vector<FieldItem>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
51 inline FieldGroup& WithFields(const Aws::Vector<FieldItem>& value) { SetFields(value); return *this;}
52 inline FieldGroup& WithFields(Aws::Vector<FieldItem>&& value) { SetFields(std::move(value)); return *this;}
53 inline FieldGroup& AddFields(const FieldItem& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
54 inline FieldGroup& AddFields(FieldItem&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline FieldGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline FieldGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline FieldGroup& WithName(const char* value) { SetName(value); return *this;}
70 private:
71
73 bool m_fieldsHasBeenSet = false;
74
75 Aws::String m_name;
76 bool m_nameHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ConnectCases
81} // namespace Aws
void SetName(const char *value)
Definition FieldGroup.h:65
AWS_CONNECTCASES_API FieldGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API FieldGroup()
void SetFields(const Aws::Vector< FieldItem > &value)
Definition FieldGroup.h:49
const Aws::String & GetName() const
Definition FieldGroup.h:61
FieldGroup & WithFields(const Aws::Vector< FieldItem > &value)
Definition FieldGroup.h:51
FieldGroup & AddFields(FieldItem &&value)
Definition FieldGroup.h:54
FieldGroup & WithName(const char *value)
Definition FieldGroup.h:68
const Aws::Vector< FieldItem > & GetFields() const
Definition FieldGroup.h:47
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldGroup & WithName(Aws::String &&value)
Definition FieldGroup.h:67
AWS_CONNECTCASES_API FieldGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldGroup & WithName(const Aws::String &value)
Definition FieldGroup.h:66
FieldGroup & WithFields(Aws::Vector< FieldItem > &&value)
Definition FieldGroup.h:52
FieldGroup & AddFields(const FieldItem &value)
Definition FieldGroup.h:53
void SetName(const Aws::String &value)
Definition FieldGroup.h:63
void SetName(Aws::String &&value)
Definition FieldGroup.h:64
void SetFields(Aws::Vector< FieldItem > &&value)
Definition FieldGroup.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue