/** * 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 CreateDestinationRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API CreateDestinationRequest(); // 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 "CreateDestination"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; /** *

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 CreateDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new resource.

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

The name of the new resource.

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

The type of value in Expression.

*/ inline const ExpressionType& GetExpressionType() const{ return m_expressionType; } /** *

The type of value in Expression.

*/ inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; } /** *

The type of value in Expression.

*/ inline void SetExpressionType(const ExpressionType& value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; } /** *

The type of value in Expression.

*/ inline void SetExpressionType(ExpressionType&& value) { m_expressionTypeHasBeenSet = true; m_expressionType = std::move(value); } /** *

The type of value in Expression.

*/ inline CreateDestinationRequest& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} /** *

The type of value in Expression.

*/ inline CreateDestinationRequest& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;} /** *

The rule name or topic rule to send messages to.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

The rule name or topic rule to send messages to.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

The rule name or topic rule to send messages to.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

The rule name or topic rule to send messages to.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

The rule name or topic rule to send messages to.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

The rule name or topic rule to send messages to.

*/ inline CreateDestinationRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

The rule name or topic rule to send messages to.

*/ inline CreateDestinationRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

The rule name or topic rule to send messages to.

*/ inline CreateDestinationRequest& WithExpression(const char* value) { SetExpression(value); return *this;} /** *

The description of the new resource.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the new resource.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the new resource.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the new resource.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the new resource.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the new resource.

*/ inline CreateDestinationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the new resource.

*/ inline CreateDestinationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the new resource.

*/ inline CreateDestinationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline CreateDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline CreateDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM Role that authorizes the destination.

*/ inline CreateDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The tags to attach to the new destination. 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 new destination. Tags are metadata that you can use * to manage a resource.

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

The tags to attach to the new destination. 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 new destination. 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 new destination. Tags are metadata that you can use * to manage a resource.

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

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

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

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

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

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

*/ inline CreateDestinationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(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 CreateDestinationRequest& 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 CreateDestinationRequest& 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 CreateDestinationRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; ExpressionType m_expressionType; bool m_expressionTypeHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws