/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include High-level information for a firewall rule group. A firewall rule group is a
* collection of rules that DNS Firewall uses to filter DNS network traffic for a
* VPC. To retrieve the rules for the rule group, call
* ListFirewallRules.See Also:
AWS
* API Reference
The ID of the rule group.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the rule group.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the rule group.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the rule group.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the rule group.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the rule group.
*/ inline FirewallRuleGroup& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the rule group.
*/ inline FirewallRuleGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the rule group.
*/ inline FirewallRuleGroup& WithId(const char* value) { SetId(value); return *this;} /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline FirewallRuleGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline FirewallRuleGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN (Amazon Resource Name) of the rule group.
*/ inline FirewallRuleGroup& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the rule group.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the rule group.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rule group.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rule group.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rule group.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rule group.
*/ inline FirewallRuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rule group.
*/ inline FirewallRuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rule group.
*/ inline FirewallRuleGroup& WithName(const char* value) { SetName(value); return *this;} /** *The number of rules in the rule group.
*/ inline int GetRuleCount() const{ return m_ruleCount; } /** *The number of rules in the rule group.
*/ inline bool RuleCountHasBeenSet() const { return m_ruleCountHasBeenSet; } /** *The number of rules in the rule group.
*/ inline void SetRuleCount(int value) { m_ruleCountHasBeenSet = true; m_ruleCount = value; } /** *The number of rules in the rule group.
*/ inline FirewallRuleGroup& WithRuleCount(int value) { SetRuleCount(value); return *this;} /** *The status of the domain list.
*/ inline const FirewallRuleGroupStatus& GetStatus() const{ return m_status; } /** *The status of the domain list.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the domain list.
*/ inline void SetStatus(const FirewallRuleGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the domain list.
*/ inline void SetStatus(FirewallRuleGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the domain list.
*/ inline FirewallRuleGroup& WithStatus(const FirewallRuleGroupStatus& value) { SetStatus(value); return *this;} /** *The status of the domain list.
*/ inline FirewallRuleGroup& WithStatus(FirewallRuleGroupStatus&& value) { SetStatus(std::move(value)); return *this;} /** *Additional information about the status of the rule group, if available.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *Additional information about the status of the rule group, if available.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *Additional information about the status of the rule group, if available.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *Additional information about the status of the rule group, if available.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *Additional information about the status of the rule group, if available.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *Additional information about the status of the rule group, if available.
*/ inline FirewallRuleGroup& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *Additional information about the status of the rule group, if available.
*/ inline FirewallRuleGroup& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *Additional information about the status of the rule group, if available.
*/ inline FirewallRuleGroup& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline FirewallRuleGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline FirewallRuleGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The Amazon Web Services account ID for the account that created the rule * group. When a rule group is shared with your account, this is the account that * has shared the rule group with you.
*/ inline FirewallRuleGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline FirewallRuleGroup& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline FirewallRuleGroup& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *A unique string defined by you to identify the request. This allows you to * retry failed requests without the risk of running the operation twice. This can * be any unique string, for example, a timestamp.
*/ inline FirewallRuleGroup& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; } /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; } /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; } /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); } /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline FirewallRuleGroup& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;} /** *Whether the rule group is shared with other Amazon Web Services accounts, or * was shared with the current account by another Amazon Web Services account. * Sharing is configured through Resource Access Manager (RAM).
*/ inline FirewallRuleGroup& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;} /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time that the rule group was created, in Unix time format and * Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline const Aws::String& GetModificationTime() const{ return m_modificationTime; } /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; } /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; } /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); } /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); } /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;} /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;} /** *The date and time that the rule group was last modified, in Unix time format * and Coordinated Universal Time (UTC).
*/ inline FirewallRuleGroup& WithModificationTime(const char* value) { SetModificationTime(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_ruleCount; bool m_ruleCountHasBeenSet = false; FirewallRuleGroupStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; ShareStatus m_shareStatus; bool m_shareStatusHasBeenSet = false; Aws::String m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_modificationTime; bool m_modificationTimeHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws