/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace VPCLattice { namespace Model { class CreateRuleResult { public: AWS_VPCLATTICE_API CreateRuleResult(); AWS_VPCLATTICE_API CreateRuleResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API CreateRuleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The rule action. Each rule must include exactly one of the following types of * actions: forward or fixed-response, and it must be the * last action to be performed.

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

The rule action. Each rule must include exactly one of the following types of * actions: forward or fixed-response, and it must be the * last action to be performed.

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

The rule action. Each rule must include exactly one of the following types of * actions: forward or fixed-response, and it must be the * last action to be performed.

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

The rule action. Each rule must include exactly one of the following types of * actions: forward or fixed-response, and it must be the * last action to be performed.

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

The rule action. Each rule must include exactly one of the following types of * actions: forward or fixed-response, and it must be the * last action to be performed.

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

The Amazon Resource Name (ARN) of the rule.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline CreateRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline CreateRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline CreateRuleResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The ID of the rule.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the rule.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The ID of the rule.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The ID of the rule.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The ID of the rule.

*/ inline CreateRuleResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the rule.

*/ inline CreateRuleResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the rule.

*/ inline CreateRuleResult& WithId(const char* value) { SetId(value); return *this;} /** *

The rule match. The RuleMatch must be an HttpMatch. * This means that the rule should be an exact match on HTTP constraints which are * made up of the HTTP method, path, and header.

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

The rule match. The RuleMatch must be an HttpMatch. * This means that the rule should be an exact match on HTTP constraints which are * made up of the HTTP method, path, and header.

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

The rule match. The RuleMatch must be an HttpMatch. * This means that the rule should be an exact match on HTTP constraints which are * made up of the HTTP method, path, and header.

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

The rule match. The RuleMatch must be an HttpMatch. * This means that the rule should be an exact match on HTTP constraints which are * made up of the HTTP method, path, and header.

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

The rule match. The RuleMatch must be an HttpMatch. * This means that the rule should be an exact match on HTTP constraints which are * made up of the HTTP method, path, and header.

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

The name of the rule.

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

The name of the rule.

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

The name of the rule.

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

The name of the rule.

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

The name of the rule.

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

The name of the rule.

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

The name of the rule.

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

The priority assigned to the rule. The lower the priority number the higher * the priority.

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

The priority assigned to the rule. The lower the priority number the higher * the priority.

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

The priority assigned to the rule. The lower the priority number the higher * the priority.

*/ inline CreateRuleResult& WithPriority(int value) { SetPriority(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RuleAction m_action; Aws::String m_arn; Aws::String m_id; RuleMatch m_match; Aws::String m_name; int m_priority; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws