AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateInputRequest.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/iotevents/IoTEventsRequest.h>
10#include <aws/iotevents/IoTEvents_EXPORTS.h>
11#include <aws/iotevents/model/InputDefinition.h>
12#include <aws/iotevents/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoTEvents {
18namespace Model {
19
23 public:
24 AWS_IOTEVENTS_API CreateInputRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateInput"; }
31
32 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetInputName() const { return m_inputName; }
39 inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
40 template <typename InputNameT = Aws::String>
41 void SetInputName(InputNameT&& value) {
42 m_inputNameHasBeenSet = true;
43 m_inputName = std::forward<InputNameT>(value);
44 }
45 template <typename InputNameT = Aws::String>
46 CreateInputRequest& WithInputName(InputNameT&& value) {
47 SetInputName(std::forward<InputNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetInputDescription() const { return m_inputDescription; }
57 inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
58 template <typename InputDescriptionT = Aws::String>
59 void SetInputDescription(InputDescriptionT&& value) {
60 m_inputDescriptionHasBeenSet = true;
61 m_inputDescription = std::forward<InputDescriptionT>(value);
62 }
63 template <typename InputDescriptionT = Aws::String>
64 CreateInputRequest& WithInputDescription(InputDescriptionT&& value) {
65 SetInputDescription(std::forward<InputDescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const InputDefinition& GetInputDefinition() const { return m_inputDefinition; }
75 inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; }
76 template <typename InputDefinitionT = InputDefinition>
77 void SetInputDefinition(InputDefinitionT&& value) {
78 m_inputDefinitionHasBeenSet = true;
79 m_inputDefinition = std::forward<InputDefinitionT>(value);
80 }
81 template <typename InputDefinitionT = InputDefinition>
82 CreateInputRequest& WithInputDefinition(InputDefinitionT&& value) {
83 SetInputDefinition(std::forward<InputDefinitionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Vector<Tag>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Vector<Tag>>
100 CreateInputRequest& WithTags(TagsT&& value) {
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsT = Tag>
105 CreateInputRequest& AddTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace_back(std::forward<TagsT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_inputName;
113
114 Aws::String m_inputDescription;
115
116 InputDefinition m_inputDefinition;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_inputNameHasBeenSet = false;
120 bool m_inputDescriptionHasBeenSet = false;
121 bool m_inputDefinitionHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace IoTEvents
127} // namespace Aws
CreateInputRequest & WithTags(TagsT &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
void SetInputDefinition(InputDefinitionT &&value)
AWS_IOTEVENTS_API CreateInputRequest()=default
CreateInputRequest & WithInputDefinition(InputDefinitionT &&value)
CreateInputRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetInputDescription(InputDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
const InputDefinition & GetInputDefinition() const
CreateInputRequest & WithInputDescription(InputDescriptionT &&value)
CreateInputRequest & WithInputName(InputNameT &&value)
const Aws::String & GetInputDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector