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

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline const Aws::String& GetListenerIdentifier() const{ return m_listenerIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(const Aws::String& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(Aws::String&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(const char* value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline DeleteRuleRequest& WithListenerIdentifier(const Aws::String& value) { SetListenerIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline DeleteRuleRequest& WithListenerIdentifier(Aws::String&& value) { SetListenerIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline DeleteRuleRequest& WithListenerIdentifier(const char* value) { SetListenerIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline const Aws::String& GetRuleIdentifier() const{ return m_ruleIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleIdentifier(const Aws::String& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleIdentifier(Aws::String&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline void SetRuleIdentifier(const char* value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline DeleteRuleRequest& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline DeleteRuleRequest& WithRuleIdentifier(Aws::String&& value) { SetRuleIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the rule.

*/ inline DeleteRuleRequest& WithRuleIdentifier(const char* value) { SetRuleIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline DeleteRuleRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline DeleteRuleRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline DeleteRuleRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;} private: Aws::String m_listenerIdentifier; bool m_listenerIdentifierHasBeenSet = false; Aws::String m_ruleIdentifier; bool m_ruleIdentifierHasBeenSet = false; Aws::String m_serviceIdentifier; bool m_serviceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws