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

Information about the action for the specified listener rule.

*/ inline const RuleAction& GetAction() const{ return m_action; } /** *

Information about the action for the specified listener rule.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

Information about the action for the specified listener rule.

*/ inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

Information about the action for the specified listener rule.

*/ inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

Information about the action for the specified listener rule.

*/ inline UpdateRuleRequest& WithAction(const RuleAction& value) { SetAction(value); return *this;} /** *

Information about the action for the specified listener rule.

*/ inline UpdateRuleRequest& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;} /** *

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 UpdateRuleRequest& WithListenerIdentifier(const Aws::String& value) { SetListenerIdentifier(value); return *this;} /** *

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

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

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

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

The rule match.

*/ inline const RuleMatch& GetMatch() const{ return m_match; } /** *

The rule match.

*/ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } /** *

The rule match.

*/ inline void SetMatch(const RuleMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *

The rule match.

*/ inline void SetMatch(RuleMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *

The rule match.

*/ inline UpdateRuleRequest& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;} /** *

The rule match.

*/ inline UpdateRuleRequest& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;} /** *

The rule priority. A listener can't have multiple rules with the same * priority.

*/ inline int GetPriority() const{ return m_priority; } /** *

The rule priority. A listener can't have multiple rules with the same * priority.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The rule priority. A listener can't have multiple rules with the same * priority.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The rule priority. A listener can't have multiple rules with the same * priority.

*/ inline UpdateRuleRequest& WithPriority(int value) { SetPriority(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 UpdateRuleRequest& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;} /** *

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

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

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

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

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

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

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

*/ inline UpdateRuleRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;} private: RuleAction m_action; bool m_actionHasBeenSet = false; Aws::String m_listenerIdentifier; bool m_listenerIdentifierHasBeenSet = false; RuleMatch m_match; bool m_matchHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; Aws::String m_ruleIdentifier; bool m_ruleIdentifierHasBeenSet = false; Aws::String m_serviceIdentifier; bool m_serviceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws