AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AttributeInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/FormInput.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
30 public:
31 AWS_DATAZONE_API AttributeInput() = default;
32 AWS_DATAZONE_API AttributeInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAttributeIdentifier() const { return m_attributeIdentifier; }
41 inline bool AttributeIdentifierHasBeenSet() const { return m_attributeIdentifierHasBeenSet; }
42 template <typename AttributeIdentifierT = Aws::String>
43 void SetAttributeIdentifier(AttributeIdentifierT&& value) {
44 m_attributeIdentifierHasBeenSet = true;
45 m_attributeIdentifier = std::forward<AttributeIdentifierT>(value);
46 }
47 template <typename AttributeIdentifierT = Aws::String>
48 AttributeInput& WithAttributeIdentifier(AttributeIdentifierT&& value) {
49 SetAttributeIdentifier(std::forward<AttributeIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<FormInput>& GetForms() const { return m_forms; }
59 inline bool FormsHasBeenSet() const { return m_formsHasBeenSet; }
60 template <typename FormsT = Aws::Vector<FormInput>>
61 void SetForms(FormsT&& value) {
62 m_formsHasBeenSet = true;
63 m_forms = std::forward<FormsT>(value);
64 }
65 template <typename FormsT = Aws::Vector<FormInput>>
66 AttributeInput& WithForms(FormsT&& value) {
67 SetForms(std::forward<FormsT>(value));
68 return *this;
69 }
70 template <typename FormsT = FormInput>
71 AttributeInput& AddForms(FormsT&& value) {
72 m_formsHasBeenSet = true;
73 m_forms.emplace_back(std::forward<FormsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_attributeIdentifier;
79
81 bool m_attributeIdentifierHasBeenSet = false;
82 bool m_formsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace DataZone
87} // namespace Aws
const Aws::String & GetAttributeIdentifier() const
AWS_DATAZONE_API AttributeInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeInput & WithForms(FormsT &&value)
void SetAttributeIdentifier(AttributeIdentifierT &&value)
AttributeInput & WithAttributeIdentifier(AttributeIdentifierT &&value)
AWS_DATAZONE_API AttributeInput(Aws::Utils::Json::JsonView jsonValue)
AttributeInput & AddForms(FormsT &&value)
const Aws::Vector< FormInput > & GetForms() const
AWS_DATAZONE_API AttributeInput()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue