/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace IoTEvents { namespace Model { /** */ class CreateInputRequest : public IoTEventsRequest { public: AWS_IOTEVENTS_API CreateInputRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateInput"; } AWS_IOTEVENTS_API Aws::String SerializePayload() const override; /** *

The name you want to give to the input.

*/ inline const Aws::String& GetInputName() const{ return m_inputName; } /** *

The name you want to give to the input.

*/ inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; } /** *

The name you want to give to the input.

*/ inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; } /** *

The name you want to give to the input.

*/ inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); } /** *

The name you want to give to the input.

*/ inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); } /** *

The name you want to give to the input.

*/ inline CreateInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;} /** *

The name you want to give to the input.

*/ inline CreateInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;} /** *

The name you want to give to the input.

*/ inline CreateInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;} /** *

A brief description of the input.

*/ inline const Aws::String& GetInputDescription() const{ return m_inputDescription; } /** *

A brief description of the input.

*/ inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; } /** *

A brief description of the input.

*/ inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; } /** *

A brief description of the input.

*/ inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); } /** *

A brief description of the input.

*/ inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); } /** *

A brief description of the input.

*/ inline CreateInputRequest& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;} /** *

A brief description of the input.

*/ inline CreateInputRequest& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;} /** *

A brief description of the input.

*/ inline CreateInputRequest& WithInputDescription(const char* value) { SetInputDescription(value); return *this;} /** *

The definition of the input.

*/ inline const InputDefinition& GetInputDefinition() const{ return m_inputDefinition; } /** *

The definition of the input.

*/ inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; } /** *

The definition of the input.

*/ inline void SetInputDefinition(const InputDefinition& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = value; } /** *

The definition of the input.

*/ inline void SetInputDefinition(InputDefinition&& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = std::move(value); } /** *

The definition of the input.

*/ inline CreateInputRequest& WithInputDefinition(const InputDefinition& value) { SetInputDefinition(value); return *this;} /** *

The definition of the input.

*/ inline CreateInputRequest& WithInputDefinition(InputDefinition&& value) { SetInputDefinition(std::move(value)); return *this;} /** *

Metadata that can be used to manage the input.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata that can be used to manage the input.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata that can be used to manage the input.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata that can be used to manage the input.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata that can be used to manage the input.

*/ inline CreateInputRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata that can be used to manage the input.

*/ inline CreateInputRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata that can be used to manage the input.

*/ inline CreateInputRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata that can be used to manage the input.

*/ inline CreateInputRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_inputName; bool m_inputNameHasBeenSet = false; Aws::String m_inputDescription; bool m_inputDescriptionHasBeenSet = false; InputDefinition m_inputDefinition; bool m_inputDefinitionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws