/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoTWireless { namespace Model { /** */ class UpdateDestinationRequest : public IoTWirelessRequest { public: AWS_IOTWIRELESS_API UpdateDestinationRequest(); // 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 "UpdateDestination"; } AWS_IOTWIRELESS_API Aws::String SerializePayload() const override; /** *

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

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

The new name of the resource.

*/ inline UpdateDestinationRequest& 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 UpdateDestinationRequest& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} /** *

The type of value in Expression.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

The new rule name or topic rule to send messages to.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

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

A new description of the resource.

*/ inline UpdateDestinationRequest& 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 UpdateDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM Role that authorizes the destination.

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

The ARN of the IAM Role that authorizes the destination.

*/ inline UpdateDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(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; }; } // namespace Model } // namespace IoTWireless } // namespace Aws