AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateFieldRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/FieldAttributes.h>
10#include <aws/connectcases/model/FieldType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConnectCases {
17namespace Model {
18
22 public:
23 AWS_CONNECTCASES_API CreateFieldRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateField"; }
30
31 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainId() const { return m_domainId; }
38 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
39 template <typename DomainIdT = Aws::String>
40 void SetDomainId(DomainIdT&& value) {
41 m_domainIdHasBeenSet = true;
42 m_domainId = std::forward<DomainIdT>(value);
43 }
44 template <typename DomainIdT = Aws::String>
45 CreateFieldRequest& WithDomainId(DomainIdT&& value) {
46 SetDomainId(std::forward<DomainIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 CreateFieldRequest& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
74 inline FieldType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(FieldType value) {
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 CreateFieldRequest& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
108 inline const FieldAttributes& GetAttributes() const { return m_attributes; }
109 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
110 template <typename AttributesT = FieldAttributes>
111 void SetAttributes(AttributesT&& value) {
112 m_attributesHasBeenSet = true;
113 m_attributes = std::forward<AttributesT>(value);
114 }
115 template <typename AttributesT = FieldAttributes>
116 CreateFieldRequest& WithAttributes(AttributesT&& value) {
117 SetAttributes(std::forward<AttributesT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_domainId;
123
124 Aws::String m_name;
125
127
128 Aws::String m_description;
129
130 FieldAttributes m_attributes;
131 bool m_domainIdHasBeenSet = false;
132 bool m_nameHasBeenSet = false;
133 bool m_typeHasBeenSet = false;
134 bool m_descriptionHasBeenSet = false;
135 bool m_attributesHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace ConnectCases
140} // namespace Aws
CreateFieldRequest & WithName(NameT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
CreateFieldRequest & WithDescription(DescriptionT &&value)
CreateFieldRequest & WithAttributes(AttributesT &&value)
AWS_CONNECTCASES_API CreateFieldRequest()=default
const FieldAttributes & GetAttributes() const
CreateFieldRequest & WithDomainId(DomainIdT &&value)
CreateFieldRequest & WithType(FieldType value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String