AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
FieldSummary.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldAttributes.h>
9#include <aws/connectcases/model/FieldNamespace.h>
10#include <aws/connectcases/model/FieldType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCases {
23namespace Model {
24
31 public:
32 AWS_CONNECTCASES_API FieldSummary() = default;
33 AWS_CONNECTCASES_API FieldSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API FieldSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFieldId() const { return m_fieldId; }
42 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
43 template <typename FieldIdT = Aws::String>
44 void SetFieldId(FieldIdT&& value) {
45 m_fieldIdHasBeenSet = true;
46 m_fieldId = std::forward<FieldIdT>(value);
47 }
48 template <typename FieldIdT = Aws::String>
49 FieldSummary& WithFieldId(FieldIdT&& value) {
50 SetFieldId(std::forward<FieldIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFieldArn() const { return m_fieldArn; }
60 inline bool FieldArnHasBeenSet() const { return m_fieldArnHasBeenSet; }
61 template <typename FieldArnT = Aws::String>
62 void SetFieldArn(FieldArnT&& value) {
63 m_fieldArnHasBeenSet = true;
64 m_fieldArn = std::forward<FieldArnT>(value);
65 }
66 template <typename FieldArnT = Aws::String>
67 FieldSummary& WithFieldArn(FieldArnT&& value) {
68 SetFieldArn(std::forward<FieldArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 FieldSummary& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline FieldType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(FieldType value) {
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106
108
111 inline FieldNamespace GetNamespace() const { return m_namespace; }
112 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
113 inline void SetNamespace(FieldNamespace value) {
114 m_namespaceHasBeenSet = true;
115 m_namespace = value;
116 }
118 SetNamespace(value);
119 return *this;
120 }
122
124
127 inline const FieldAttributes& GetAttributes() const { return m_attributes; }
128 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
129 template <typename AttributesT = FieldAttributes>
130 void SetAttributes(AttributesT&& value) {
131 m_attributesHasBeenSet = true;
132 m_attributes = std::forward<AttributesT>(value);
133 }
134 template <typename AttributesT = FieldAttributes>
135 FieldSummary& WithAttributes(AttributesT&& value) {
136 SetAttributes(std::forward<AttributesT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_fieldId;
142
143 Aws::String m_fieldArn;
144
145 Aws::String m_name;
146
148
150
151 FieldAttributes m_attributes;
152 bool m_fieldIdHasBeenSet = false;
153 bool m_fieldArnHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_typeHasBeenSet = false;
156 bool m_namespaceHasBeenSet = false;
157 bool m_attributesHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace ConnectCases
162} // namespace Aws
const Aws::String & GetName() const
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldSummary & WithName(NameT &&value)
FieldSummary & WithType(FieldType value)
void SetNamespace(FieldNamespace value)
FieldSummary & WithAttributes(AttributesT &&value)
const FieldAttributes & GetAttributes() const
FieldSummary & WithNamespace(FieldNamespace value)
const Aws::String & GetFieldArn() const
AWS_CONNECTCASES_API FieldSummary()=default
AWS_CONNECTCASES_API FieldSummary(Aws::Utils::Json::JsonView jsonValue)
void SetFieldArn(FieldArnT &&value)
void SetAttributes(AttributesT &&value)
const Aws::String & GetFieldId() const
FieldSummary & WithFieldArn(FieldArnT &&value)
FieldSummary & WithFieldId(FieldIdT &&value)
AWS_CONNECTCASES_API FieldSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue