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

The action for the default rule.

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

The action for the default rule.

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

The action for the default rule.

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

The action for the default rule.

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

The action for the default rule.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The Amazon Resource Name (ARN) of the listener.

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

The date and time that the listener rule was created, specified in ISO-8601 * format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the listener rule was created, specified in ISO-8601 * format.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The date and time that the listener rule was created, specified in ISO-8601 * format.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The date and time that the listener rule was created, specified in ISO-8601 * format.

*/ inline GetRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the listener rule was created, specified in ISO-8601 * format.

*/ inline GetRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The ID of the listener.

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

The ID of the listener.

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

The ID of the listener.

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

The ID of the listener.

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

The ID of the listener.

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

The ID of the listener.

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

The ID of the listener.

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

Indicates whether this is the default rule.

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

Indicates whether this is the default rule.

*/ inline void SetIsDefault(bool value) { m_isDefault = value; } /** *

Indicates whether this is the default rule.

*/ inline GetRuleResult& WithIsDefault(bool value) { SetIsDefault(value); return *this;} /** *

The date and time that the listener rule was last updated, specified in * ISO-8601 format.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date and time that the listener rule was last updated, specified in * ISO-8601 format.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; } /** *

The date and time that the listener rule was last updated, specified in * ISO-8601 format.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); } /** *

The date and time that the listener rule was last updated, specified in * ISO-8601 format.

*/ inline GetRuleResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date and time that the listener rule was last updated, specified in * ISO-8601 format.

*/ inline GetRuleResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The rule match.

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

The rule match.

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

The rule match.

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

The rule match.

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

The rule match.

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

The name of the listener.

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

The name of the listener.

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

The name of the listener.

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

The name of the listener.

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

The name of the listener.

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

The name of the listener.

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

The name of the listener.

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

The priority level for the specified rule.

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

The priority level for the specified rule.

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

The priority level for the specified rule.

*/ inline GetRuleResult& 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 GetRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RuleAction m_action; Aws::String m_arn; Aws::Utils::DateTime m_createdAt; Aws::String m_id; bool m_isDefault; Aws::Utils::DateTime m_lastUpdatedAt; RuleMatch m_match; Aws::String m_name; int m_priority; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws