AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CustomUpdateContent.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldValue.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCases {
21namespace Model {
22
30 public:
31 AWS_CONNECTCASES_API CustomUpdateContent() = default;
32 AWS_CONNECTCASES_API CustomUpdateContent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<FieldValue>& GetFields() const { return m_fields; }
43 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
44 template <typename FieldsT = Aws::Vector<FieldValue>>
45 void SetFields(FieldsT&& value) {
46 m_fieldsHasBeenSet = true;
47 m_fields = std::forward<FieldsT>(value);
48 }
49 template <typename FieldsT = Aws::Vector<FieldValue>>
50 CustomUpdateContent& WithFields(FieldsT&& value) {
51 SetFields(std::forward<FieldsT>(value));
52 return *this;
53 }
54 template <typename FieldsT = FieldValue>
55 CustomUpdateContent& AddFields(FieldsT&& value) {
56 m_fieldsHasBeenSet = true;
57 m_fields.emplace_back(std::forward<FieldsT>(value));
58 return *this;
59 }
61 private:
63 bool m_fieldsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace ConnectCases
68} // namespace Aws
CustomUpdateContent & WithFields(FieldsT &&value)
AWS_CONNECTCASES_API CustomUpdateContent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FieldValue > & GetFields() const
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
CustomUpdateContent & AddFields(FieldsT &&value)
AWS_CONNECTCASES_API CustomUpdateContent()=default
AWS_CONNECTCASES_API CustomUpdateContent(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue