/** * 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 #include namespace Aws { namespace IoTWireless { namespace Model { /** */ class CreateWirelessGatewayTaskDefinitionRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API CreateWirelessGatewayTaskDefinitionRequest(); // 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 "CreateWirelessGatewayTaskDefinition"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; /** *

Whether to automatically create tasks using this task definition for all * gateways with the specified current version. If false, the task * must me created by calling CreateWirelessGatewayTask.

*/ inline bool GetAutoCreateTasks() const{ return m_autoCreateTasks; } /** *

Whether to automatically create tasks using this task definition for all * gateways with the specified current version. If false, the task * must me created by calling CreateWirelessGatewayTask.

*/ inline bool AutoCreateTasksHasBeenSet() const { return m_autoCreateTasksHasBeenSet; } /** *

Whether to automatically create tasks using this task definition for all * gateways with the specified current version. If false, the task * must me created by calling CreateWirelessGatewayTask.

*/ inline void SetAutoCreateTasks(bool value) { m_autoCreateTasksHasBeenSet = true; m_autoCreateTasks = value; } /** *

Whether to automatically create tasks using this task definition for all * gateways with the specified current version. If false, the task * must me created by calling CreateWirelessGatewayTask.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithAutoCreateTasks(bool value) { SetAutoCreateTasks(value); return *this;} /** *

The name of the new resource.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new resource.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new resource.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the new resource.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the new resource.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the new resource.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new resource.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the new resource.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Information about the gateways to update.

*/ inline const UpdateWirelessGatewayTaskCreate& GetUpdate() const{ return m_update; } /** *

Information about the gateways to update.

*/ inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; } /** *

Information about the gateways to update.

*/ inline void SetUpdate(const UpdateWirelessGatewayTaskCreate& value) { m_updateHasBeenSet = true; m_update = value; } /** *

Information about the gateways to update.

*/ inline void SetUpdate(UpdateWirelessGatewayTaskCreate&& value) { m_updateHasBeenSet = true; m_update = std::move(value); } /** *

Information about the gateways to update.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithUpdate(const UpdateWirelessGatewayTaskCreate& value) { SetUpdate(value); return *this;} /** *

Information about the gateways to update.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithUpdate(UpdateWirelessGatewayTaskCreate&& value) { SetUpdate(std::move(value)); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each resource must have a unique client request token. If you try to create a * new resource with the same token as a resource that already exists, an exception * occurs. If you omit this value, AWS SDKs will automatically generate a unique * client request.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

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

The tags to attach to the specified resource. Tags are metadata that you can * use to manage a resource.

*/ inline CreateWirelessGatewayTaskDefinitionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: bool m_autoCreateTasks; bool m_autoCreateTasksHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; UpdateWirelessGatewayTaskCreate m_update; bool m_updateHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws