AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
FieldsConfiguration.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldIdentifier.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 FieldsConfiguration() = default;
33 AWS_CONNECTCASES_API FieldsConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<FieldIdentifier>& GetFieldIds() const { return m_fieldIds; }
44 inline bool FieldIdsHasBeenSet() const { return m_fieldIdsHasBeenSet; }
45 template <typename FieldIdsT = Aws::Vector<FieldIdentifier>>
46 void SetFieldIds(FieldIdsT&& value) {
47 m_fieldIdsHasBeenSet = true;
48 m_fieldIds = std::forward<FieldIdsT>(value);
49 }
50 template <typename FieldIdsT = Aws::Vector<FieldIdentifier>>
51 FieldsConfiguration& WithFieldIds(FieldIdsT&& value) {
52 SetFieldIds(std::forward<FieldIdsT>(value));
53 return *this;
54 }
55 template <typename FieldIdsT = FieldIdentifier>
56 FieldsConfiguration& AddFieldIds(FieldIdsT&& value) {
57 m_fieldIdsHasBeenSet = true;
58 m_fieldIds.emplace_back(std::forward<FieldIdsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetSourceCaseId() const { return m_sourceCaseId; }
69 inline bool SourceCaseIdHasBeenSet() const { return m_sourceCaseIdHasBeenSet; }
70 template <typename SourceCaseIdT = Aws::String>
71 void SetSourceCaseId(SourceCaseIdT&& value) {
72 m_sourceCaseIdHasBeenSet = true;
73 m_sourceCaseId = std::forward<SourceCaseIdT>(value);
74 }
75 template <typename SourceCaseIdT = Aws::String>
76 FieldsConfiguration& WithSourceCaseId(SourceCaseIdT&& value) {
77 SetSourceCaseId(std::forward<SourceCaseIdT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::String m_sourceCaseId;
85 bool m_fieldIdsHasBeenSet = false;
86 bool m_sourceCaseIdHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace ConnectCases
91} // namespace Aws
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldsConfiguration & WithFieldIds(FieldIdsT &&value)
AWS_CONNECTCASES_API FieldsConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API FieldsConfiguration()=default
AWS_CONNECTCASES_API FieldsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldsConfiguration & WithSourceCaseId(SourceCaseIdT &&value)
const Aws::Vector< FieldIdentifier > & GetFieldIds() const
FieldsConfiguration & AddFieldIds(FieldIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue