AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFieldResponse.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcases/model/FieldNamespace.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connectcases/model/FieldType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConnectCases
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECTCASES_API GetFieldResponse() = default;
39 AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCASES_API GetFieldResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
49 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
50 template<typename CreatedTimeT = Aws::Utils::DateTime>
51 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
52 template<typename CreatedTimeT = Aws::Utils::DateTime>
53 GetFieldResponse& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
55
57
60 inline bool GetDeleted() const { return m_deleted; }
61 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
62 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
63 inline GetFieldResponse& WithDeleted(bool value) { SetDeleted(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 GetFieldResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetFieldArn() const { return m_fieldArn; }
83 inline bool FieldArnHasBeenSet() const { return m_fieldArnHasBeenSet; }
84 template<typename FieldArnT = Aws::String>
85 void SetFieldArn(FieldArnT&& value) { m_fieldArnHasBeenSet = true; m_fieldArn = std::forward<FieldArnT>(value); }
86 template<typename FieldArnT = Aws::String>
87 GetFieldResponse& WithFieldArn(FieldArnT&& value) { SetFieldArn(std::forward<FieldArnT>(value)); return *this;}
89
91
94 inline const Aws::String& GetFieldId() const { return m_fieldId; }
95 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
96 template<typename FieldIdT = Aws::String>
97 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
98 template<typename FieldIdT = Aws::String>
99 GetFieldResponse& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
107 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
108 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
109 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
110 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
111 GetFieldResponse& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
120 template<typename NameT = Aws::String>
121 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
122 template<typename NameT = Aws::String>
123 GetFieldResponse& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
125
127
130 inline FieldNamespace GetNamespace() const { return m_namespace; }
131 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
132 inline void SetNamespace(FieldNamespace value) { m_namespaceHasBeenSet = true; m_namespace = value; }
133 inline GetFieldResponse& WithNamespace(FieldNamespace value) { SetNamespace(value); return *this;}
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 GetFieldResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
147 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
148 GetFieldResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
149 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
150 }
152
154
157 inline FieldType GetType() const { return m_type; }
158 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
159 inline void SetType(FieldType value) { m_typeHasBeenSet = true; m_type = value; }
160 inline GetFieldResponse& WithType(FieldType value) { SetType(value); return *this;}
162 private:
163
164 Aws::Utils::DateTime m_createdTime{};
165 bool m_createdTimeHasBeenSet = false;
166
167 bool m_deleted{false};
168 bool m_deletedHasBeenSet = false;
169
170 Aws::String m_description;
171 bool m_descriptionHasBeenSet = false;
172
173 Aws::String m_fieldArn;
174 bool m_fieldArnHasBeenSet = false;
175
176 Aws::String m_fieldId;
177 bool m_fieldIdHasBeenSet = false;
178
179 Aws::Utils::DateTime m_lastModifiedTime{};
180 bool m_lastModifiedTimeHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
186 bool m_namespaceHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190
192 bool m_typeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ConnectCases
197} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue)
GetFieldResponse & WithType(FieldType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
GetFieldResponse & WithTags(TagsT &&value)
GetFieldResponse & WithDeleted(bool value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTCASES_API GetFieldResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetDescription() const
GetFieldResponse & WithFieldArn(FieldArnT &&value)
GetFieldResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetFieldResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
GetFieldResponse & WithName(NameT &&value)
GetFieldResponse & WithCreatedTime(CreatedTimeT &&value)
GetFieldResponse & WithFieldId(FieldIdT &&value)
GetFieldResponse & WithDescription(DescriptionT &&value)
AWS_CONNECTCASES_API GetFieldResponse()=default
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
GetFieldResponse & WithNamespace(FieldNamespace value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue