AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFieldRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/ConnectCasesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcases/model/FieldType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ConnectCases
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECTCASES_API CreateFieldRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateField"; }
32
33 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template<typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
44 template<typename DescriptionT = Aws::String>
45 CreateFieldRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDomainId() const { return m_domainId; }
53 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
54 template<typename DomainIdT = Aws::String>
55 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
56 template<typename DomainIdT = Aws::String>
57 CreateFieldRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 CreateFieldRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
77 inline FieldType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(FieldType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline CreateFieldRequest& WithType(FieldType value) { SetType(value); return *this;}
82 private:
83
84 Aws::String m_description;
85 bool m_descriptionHasBeenSet = false;
86
87 Aws::String m_domainId;
88 bool m_domainIdHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
94 bool m_typeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ConnectCases
99} // namespace Aws
CreateFieldRequest & WithName(NameT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
CreateFieldRequest & WithDescription(DescriptionT &&value)
AWS_CONNECTCASES_API CreateFieldRequest()=default
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