AWS SDK for C++  1.9.71
AWS SDK for C++
CreateInputRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace IoTEvents
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateInput"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetInputName() const{ return m_inputName; }
42 
46  inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
47 
51  inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
52 
56  inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
57 
61  inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
62 
66  inline CreateInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
67 
71  inline CreateInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
72 
76  inline CreateInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;}
77 
78 
82  inline const Aws::String& GetInputDescription() const{ return m_inputDescription; }
83 
87  inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
88 
92  inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; }
93 
97  inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); }
98 
102  inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); }
103 
107  inline CreateInputRequest& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;}
108 
112  inline CreateInputRequest& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;}
113 
117  inline CreateInputRequest& WithInputDescription(const char* value) { SetInputDescription(value); return *this;}
118 
119 
123  inline const InputDefinition& GetInputDefinition() const{ return m_inputDefinition; }
124 
128  inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; }
129 
133  inline void SetInputDefinition(const InputDefinition& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = value; }
134 
138  inline void SetInputDefinition(InputDefinition&& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = std::move(value); }
139 
143  inline CreateInputRequest& WithInputDefinition(const InputDefinition& value) { SetInputDefinition(value); return *this;}
144 
148  inline CreateInputRequest& WithInputDefinition(InputDefinition&& value) { SetInputDefinition(std::move(value)); return *this;}
149 
150 
154  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
155 
159  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 
164  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
165 
169  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
170 
174  inline CreateInputRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
175 
179  inline CreateInputRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
180 
184  inline CreateInputRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
185 
189  inline CreateInputRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
190 
191  private:
192 
193  Aws::String m_inputName;
194  bool m_inputNameHasBeenSet;
195 
196  Aws::String m_inputDescription;
197  bool m_inputDescriptionHasBeenSet;
198 
199  InputDefinition m_inputDefinition;
200  bool m_inputDefinitionHasBeenSet;
201 
202  Aws::Vector<Tag> m_tags;
203  bool m_tagsHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace IoTEvents
208 } // namespace Aws
Aws::IoTEvents::Model::CreateInputRequest::WithInputDescription
CreateInputRequest & WithInputDescription(const char *value)
Definition: CreateInputRequest.h:117
Aws::IoTEvents::Model::CreateInputRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateInputRequest.h:164
Aws::IoTEvents::Model::CreateInputRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateInputRequest.h:154
Aws::IoTEvents::Model::CreateInputRequest::WithInputName
CreateInputRequest & WithInputName(const Aws::String &value)
Definition: CreateInputRequest.h:66
IoTEventsRequest.h
Aws::IoTEvents::Model::CreateInputRequest::InputNameHasBeenSet
bool InputNameHasBeenSet() const
Definition: CreateInputRequest.h:46
Aws::IoTEvents::Model::CreateInputRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateInputRequest.h:159
Aws::IoTEvents::Model::CreateInputRequest::WithInputDescription
CreateInputRequest & WithInputDescription(Aws::String &&value)
Definition: CreateInputRequest.h:112
Aws::IoTEvents::Model::CreateInputRequest::SetInputName
void SetInputName(const char *value)
Definition: CreateInputRequest.h:61
Aws::IoTEvents::Model::CreateInputRequest::WithTags
CreateInputRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateInputRequest.h:174
Aws::IoTEvents::Model::CreateInputRequest::SetInputName
void SetInputName(const Aws::String &value)
Definition: CreateInputRequest.h:51
Aws::IoTEvents::Model::CreateInputRequest::GetInputName
const Aws::String & GetInputName() const
Definition: CreateInputRequest.h:41
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTEvents::Model::CreateInputRequest::WithTags
CreateInputRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateInputRequest.h:179
InputDefinition.h
AWSVector.h
Aws::IoTEvents::Model::CreateInputRequest::SetInputDefinition
void SetInputDefinition(InputDefinition &&value)
Definition: CreateInputRequest.h:138
Tag.h
Aws::IoTEvents::Model::CreateInputRequest::SetInputDescription
void SetInputDescription(Aws::String &&value)
Definition: CreateInputRequest.h:97
Aws::IoTEvents::Model::CreateInputRequest::GetInputDescription
const Aws::String & GetInputDescription() const
Definition: CreateInputRequest.h:82
Aws::IoTEvents::Model::CreateInputRequest::InputDefinitionHasBeenSet
bool InputDefinitionHasBeenSet() const
Definition: CreateInputRequest.h:128
Aws::IoTEvents::Model::InputDefinition
Definition: InputDefinition.h:33
Aws::IoTEvents::Model::CreateInputRequest::SetInputName
void SetInputName(Aws::String &&value)
Definition: CreateInputRequest.h:56
AWSString.h
Aws::IoTEvents::IoTEventsRequest
Definition: IoTEventsRequest.h:17
Aws::IoTEvents::Model::CreateInputRequest::GetInputDefinition
const InputDefinition & GetInputDefinition() const
Definition: CreateInputRequest.h:123
Aws::IoTEvents::Model::CreateInputRequest::WithInputDefinition
CreateInputRequest & WithInputDefinition(const InputDefinition &value)
Definition: CreateInputRequest.h:143
Aws::IoTEvents::Model::CreateInputRequest::AddTags
CreateInputRequest & AddTags(Tag &&value)
Definition: CreateInputRequest.h:189
Aws::IoTEvents::Model::CreateInputRequest::WithInputName
CreateInputRequest & WithInputName(Aws::String &&value)
Definition: CreateInputRequest.h:71
Aws::IoTEvents::Model::CreateInputRequest::InputDescriptionHasBeenSet
bool InputDescriptionHasBeenSet() const
Definition: CreateInputRequest.h:87
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
Aws::IoTEvents::Model::CreateInputRequest::AddTags
CreateInputRequest & AddTags(const Tag &value)
Definition: CreateInputRequest.h:184
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
Aws::IoTEvents::Model::Tag
Definition: Tag.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEvents::Model::CreateInputRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateInputRequest.h:33
Aws::IoTEvents::Model::CreateInputRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateInputRequest.h:169
Aws::IoTEvents::Model::CreateInputRequest
Definition: CreateInputRequest.h:25
Aws::IoTEvents::Model::CreateInputRequest::SetInputDescription
void SetInputDescription(const char *value)
Definition: CreateInputRequest.h:102
Aws::IoTEvents::Model::CreateInputRequest::SetInputDescription
void SetInputDescription(const Aws::String &value)
Definition: CreateInputRequest.h:92
Aws::IoTEvents::Model::CreateInputRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTEvents::Model::CreateInputRequest::CreateInputRequest
CreateInputRequest()
Aws::IoTEvents::Model::CreateInputRequest::SetInputDefinition
void SetInputDefinition(const InputDefinition &value)
Definition: CreateInputRequest.h:133
Aws::IoTEvents::Model::CreateInputRequest::WithInputDefinition
CreateInputRequest & WithInputDefinition(InputDefinition &&value)
Definition: CreateInputRequest.h:148
Aws::IoTEvents::Model::CreateInputRequest::WithInputName
CreateInputRequest & WithInputName(const char *value)
Definition: CreateInputRequest.h:76
Aws::IoTEvents::Model::CreateInputRequest::WithInputDescription
CreateInputRequest & WithInputDescription(const Aws::String &value)
Definition: CreateInputRequest.h:107