AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CustomContent.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 CustomContent() = default;
32 AWS_CONNECTCASES_API CustomContent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCASES_API CustomContent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<FieldValue>& GetFields() const { return m_fields; }
41 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
42 template <typename FieldsT = Aws::Vector<FieldValue>>
43 void SetFields(FieldsT&& value) {
44 m_fieldsHasBeenSet = true;
45 m_fields = std::forward<FieldsT>(value);
46 }
47 template <typename FieldsT = Aws::Vector<FieldValue>>
48 CustomContent& WithFields(FieldsT&& value) {
49 SetFields(std::forward<FieldsT>(value));
50 return *this;
51 }
52 template <typename FieldsT = FieldValue>
53 CustomContent& AddFields(FieldsT&& value) {
54 m_fieldsHasBeenSet = true;
55 m_fields.emplace_back(std::forward<FieldsT>(value));
56 return *this;
57 }
59 private:
61 bool m_fieldsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace ConnectCases
66} // namespace Aws
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCASES_API CustomContent(Aws::Utils::Json::JsonView jsonValue)
CustomContent & AddFields(FieldsT &&value)
AWS_CONNECTCASES_API CustomContent()=default
AWS_CONNECTCASES_API CustomContent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FieldValue > & GetFields() const
CustomContent & WithFields(FieldsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue