AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ParentChildFieldOptionsMapping.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ParentChildFieldOptionsMapping() = default;
34 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetParentFieldOptionValue() const { return m_parentFieldOptionValue; }
41 inline bool ParentFieldOptionValueHasBeenSet() const { return m_parentFieldOptionValueHasBeenSet; }
42 template <typename ParentFieldOptionValueT = Aws::String>
43 void SetParentFieldOptionValue(ParentFieldOptionValueT&& value) {
44 m_parentFieldOptionValueHasBeenSet = true;
45 m_parentFieldOptionValue = std::forward<ParentFieldOptionValueT>(value);
46 }
47 template <typename ParentFieldOptionValueT = Aws::String>
49 SetParentFieldOptionValue(std::forward<ParentFieldOptionValueT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetChildFieldOptionValues() const { return m_childFieldOptionValues; }
59 inline bool ChildFieldOptionValuesHasBeenSet() const { return m_childFieldOptionValuesHasBeenSet; }
60 template <typename ChildFieldOptionValuesT = Aws::Vector<Aws::String>>
61 void SetChildFieldOptionValues(ChildFieldOptionValuesT&& value) {
62 m_childFieldOptionValuesHasBeenSet = true;
63 m_childFieldOptionValues = std::forward<ChildFieldOptionValuesT>(value);
64 }
65 template <typename ChildFieldOptionValuesT = Aws::Vector<Aws::String>>
67 SetChildFieldOptionValues(std::forward<ChildFieldOptionValuesT>(value));
68 return *this;
69 }
70 template <typename ChildFieldOptionValuesT = Aws::String>
72 m_childFieldOptionValuesHasBeenSet = true;
73 m_childFieldOptionValues.emplace_back(std::forward<ChildFieldOptionValuesT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_parentFieldOptionValue;
79
80 Aws::Vector<Aws::String> m_childFieldOptionValues;
81 bool m_parentFieldOptionValueHasBeenSet = false;
82 bool m_childFieldOptionValuesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ConnectCases
87} // namespace Aws
AWS_CONNECTCASES_API ParentChildFieldOptionsMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
ParentChildFieldOptionsMapping & AddChildFieldOptionValues(ChildFieldOptionValuesT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetChildFieldOptionValues() const
AWS_CONNECTCASES_API ParentChildFieldOptionsMapping()=default
AWS_CONNECTCASES_API ParentChildFieldOptionsMapping(Aws::Utils::Json::JsonView jsonValue)
ParentChildFieldOptionsMapping & WithParentFieldOptionValue(ParentFieldOptionValueT &&value)
ParentChildFieldOptionsMapping & WithChildFieldOptionValues(ChildFieldOptionValuesT &&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