/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary information about the listener rule.See Also:
AWS
* API Reference
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 bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the rule.
*/ inline RuleSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the rule.
*/ inline RuleSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the rule.
*/ inline RuleSummary& 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 bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time that the listener rule was created, specified in ISO-8601 * format.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; 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_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time that the listener rule was created, specified in ISO-8601 * format.
*/ inline RuleSummary& 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 RuleSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The ID of the rule.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the rule.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the rule.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the rule.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the rule.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the rule.
*/ inline RuleSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the rule.
*/ inline RuleSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the rule.
*/ inline RuleSummary& WithId(const char* value) { SetId(value); return *this;} /** *Indicates whether this is the default rule. Listener rules are created when * you create a listener. Each listener has a default rule for checking connection * requests.
*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *Indicates whether this is the default rule. Listener rules are created when * you create a listener. Each listener has a default rule for checking connection * requests.
*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *Indicates whether this is the default rule. Listener rules are created when * you create a listener. Each listener has a default rule for checking connection * requests.
*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *Indicates whether this is the default rule. Listener rules are created when * you create a listener. Each listener has a default rule for checking connection * requests.
*/ inline RuleSummary& 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 bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *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_lastUpdatedAtHasBeenSet = true; 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_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *The date and time that the listener rule was last updated, specified in * ISO-8601 format.
*/ inline RuleSummary& 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 RuleSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(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 bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rule.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rule.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rule.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rule.
*/ inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rule.
*/ inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rule.
*/ inline RuleSummary& WithName(const char* value) { SetName(value); return *this;} /** *The priority of the rule.
*/ inline int GetPriority() const{ return m_priority; } /** *The priority of the rule.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *The priority of the rule.
*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *The priority of the rule.
*/ inline RuleSummary& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; bool m_isDefault; bool m_isDefaultHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws