@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Firewall extends Object implements Serializable, Cloneable, StructuredPojo
The firewall defines the configuration settings for an Network Firewall firewall. These settings include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall Amazon Web Services resource.
The status of the firewall, for example whether it's ready to filter network traffic, is provided in the corresponding FirewallStatus. You can retrieve both objects by calling DescribeFirewall.
Constructor and Description |
---|
Firewall() |
Modifier and Type | Method and Description |
---|---|
Firewall |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteProtection()
A flag indicating whether it is possible to delete the firewall.
|
String |
getDescription()
A description of the firewall.
|
EncryptionConfiguration |
getEncryptionConfiguration()
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
|
String |
getFirewallArn()
The Amazon Resource Name (ARN) of the firewall.
|
String |
getFirewallId()
The unique identifier for the firewall.
|
String |
getFirewallName()
The descriptive name of the firewall.
|
String |
getFirewallPolicyArn()
The Amazon Resource Name (ARN) of the firewall policy.
|
Boolean |
getFirewallPolicyChangeProtection()
A setting indicating whether the firewall is protected against a change to the firewall policy association.
|
Boolean |
getSubnetChangeProtection()
A setting indicating whether the firewall is protected against changes to the subnet associations.
|
List<SubnetMapping> |
getSubnetMappings()
The public subnets that Network Firewall is using for the firewall.
|
List<Tag> |
getTags()
|
String |
getVpcId()
The unique identifier of the VPC where the firewall is in use.
|
int |
hashCode() |
Boolean |
isDeleteProtection()
A flag indicating whether it is possible to delete the firewall.
|
Boolean |
isFirewallPolicyChangeProtection()
A setting indicating whether the firewall is protected against a change to the firewall policy association.
|
Boolean |
isSubnetChangeProtection()
A setting indicating whether the firewall is protected against changes to the subnet associations.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteProtection(Boolean deleteProtection)
A flag indicating whether it is possible to delete the firewall.
|
void |
setDescription(String description)
A description of the firewall.
|
void |
setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
|
void |
setFirewallArn(String firewallArn)
The Amazon Resource Name (ARN) of the firewall.
|
void |
setFirewallId(String firewallId)
The unique identifier for the firewall.
|
void |
setFirewallName(String firewallName)
The descriptive name of the firewall.
|
void |
setFirewallPolicyArn(String firewallPolicyArn)
The Amazon Resource Name (ARN) of the firewall policy.
|
void |
setFirewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection)
A setting indicating whether the firewall is protected against a change to the firewall policy association.
|
void |
setSubnetChangeProtection(Boolean subnetChangeProtection)
A setting indicating whether the firewall is protected against changes to the subnet associations.
|
void |
setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The public subnets that Network Firewall is using for the firewall.
|
void |
setTags(Collection<Tag> tags)
|
void |
setVpcId(String vpcId)
The unique identifier of the VPC where the firewall is in use.
|
String |
toString()
Returns a string representation of this object.
|
Firewall |
withDeleteProtection(Boolean deleteProtection)
A flag indicating whether it is possible to delete the firewall.
|
Firewall |
withDescription(String description)
A description of the firewall.
|
Firewall |
withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
|
Firewall |
withFirewallArn(String firewallArn)
The Amazon Resource Name (ARN) of the firewall.
|
Firewall |
withFirewallId(String firewallId)
The unique identifier for the firewall.
|
Firewall |
withFirewallName(String firewallName)
The descriptive name of the firewall.
|
Firewall |
withFirewallPolicyArn(String firewallPolicyArn)
The Amazon Resource Name (ARN) of the firewall policy.
|
Firewall |
withFirewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection)
A setting indicating whether the firewall is protected against a change to the firewall policy association.
|
Firewall |
withSubnetChangeProtection(Boolean subnetChangeProtection)
A setting indicating whether the firewall is protected against changes to the subnet associations.
|
Firewall |
withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The public subnets that Network Firewall is using for the firewall.
|
Firewall |
withSubnetMappings(SubnetMapping... subnetMappings)
The public subnets that Network Firewall is using for the firewall.
|
Firewall |
withTags(Collection<Tag> tags)
|
Firewall |
withTags(Tag... tags)
|
Firewall |
withVpcId(String vpcId)
The unique identifier of the VPC where the firewall is in use.
|
public void setFirewallName(String firewallName)
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
firewallName
- The descriptive name of the firewall. You can't change the name of a firewall after you create it.public String getFirewallName()
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
public Firewall withFirewallName(String firewallName)
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
firewallName
- The descriptive name of the firewall. You can't change the name of a firewall after you create it.public void setFirewallArn(String firewallArn)
The Amazon Resource Name (ARN) of the firewall.
firewallArn
- The Amazon Resource Name (ARN) of the firewall.public String getFirewallArn()
The Amazon Resource Name (ARN) of the firewall.
public Firewall withFirewallArn(String firewallArn)
The Amazon Resource Name (ARN) of the firewall.
firewallArn
- The Amazon Resource Name (ARN) of the firewall.public void setFirewallPolicyArn(String firewallPolicyArn)
The Amazon Resource Name (ARN) of the firewall policy.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
firewallPolicyArn
- The Amazon Resource Name (ARN) of the firewall policy.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
public String getFirewallPolicyArn()
The Amazon Resource Name (ARN) of the firewall policy.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
public Firewall withFirewallPolicyArn(String firewallPolicyArn)
The Amazon Resource Name (ARN) of the firewall policy.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
firewallPolicyArn
- The Amazon Resource Name (ARN) of the firewall policy.
The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
public void setVpcId(String vpcId)
The unique identifier of the VPC where the firewall is in use.
vpcId
- The unique identifier of the VPC where the firewall is in use.public String getVpcId()
The unique identifier of the VPC where the firewall is in use.
public Firewall withVpcId(String vpcId)
The unique identifier of the VPC where the firewall is in use.
vpcId
- The unique identifier of the VPC where the firewall is in use.public List<SubnetMapping> getSubnetMappings()
The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different Availability Zone.
public void setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different Availability Zone.
subnetMappings
- The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different
Availability Zone.public Firewall withSubnetMappings(SubnetMapping... subnetMappings)
The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different Availability Zone.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetMappings(java.util.Collection)
or withSubnetMappings(java.util.Collection)
if you want
to override the existing values.
subnetMappings
- The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different
Availability Zone.public Firewall withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different Availability Zone.
subnetMappings
- The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different
Availability Zone.public void setDeleteProtection(Boolean deleteProtection)
A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates that
the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall
that is in use. When you create a firewall, the operation initializes this flag to TRUE
.
deleteProtection
- A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates
that the firewall is protected against deletion. Use this setting to protect against accidentally deleting
a firewall that is in use. When you create a firewall, the operation initializes this flag to
TRUE
.public Boolean getDeleteProtection()
A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates that
the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall
that is in use. When you create a firewall, the operation initializes this flag to TRUE
.
TRUE
indicates
that the firewall is protected against deletion. Use this setting to protect against accidentally
deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to
TRUE
.public Firewall withDeleteProtection(Boolean deleteProtection)
A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates that
the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall
that is in use. When you create a firewall, the operation initializes this flag to TRUE
.
deleteProtection
- A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates
that the firewall is protected against deletion. Use this setting to protect against accidentally deleting
a firewall that is in use. When you create a firewall, the operation initializes this flag to
TRUE
.public Boolean isDeleteProtection()
A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates that
the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall
that is in use. When you create a firewall, the operation initializes this flag to TRUE
.
TRUE
indicates
that the firewall is protected against deletion. Use this setting to protect against accidentally
deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to
TRUE
.public void setSubnetChangeProtection(Boolean subnetChangeProtection)
A setting indicating whether the firewall is protected against changes to the subnet associations. Use this
setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you
create a firewall, the operation initializes this setting to TRUE
.
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. Use
this setting to protect against accidentally modifying the subnet associations for a firewall that is in
use. When you create a firewall, the operation initializes this setting to TRUE
.public Boolean getSubnetChangeProtection()
A setting indicating whether the firewall is protected against changes to the subnet associations. Use this
setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you
create a firewall, the operation initializes this setting to TRUE
.
TRUE
.public Firewall withSubnetChangeProtection(Boolean subnetChangeProtection)
A setting indicating whether the firewall is protected against changes to the subnet associations. Use this
setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you
create a firewall, the operation initializes this setting to TRUE
.
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. Use
this setting to protect against accidentally modifying the subnet associations for a firewall that is in
use. When you create a firewall, the operation initializes this setting to TRUE
.public Boolean isSubnetChangeProtection()
A setting indicating whether the firewall is protected against changes to the subnet associations. Use this
setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you
create a firewall, the operation initializes this setting to TRUE
.
TRUE
.public void setFirewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection)
A setting indicating whether the firewall is protected against a change to the firewall policy association. Use
this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When
you create a firewall, the operation initializes this setting to TRUE
.
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy
association. Use this setting to protect against accidentally modifying the firewall policy for a firewall
that is in use. When you create a firewall, the operation initializes this setting to TRUE
.public Boolean getFirewallPolicyChangeProtection()
A setting indicating whether the firewall is protected against a change to the firewall policy association. Use
this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When
you create a firewall, the operation initializes this setting to TRUE
.
TRUE
.public Firewall withFirewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection)
A setting indicating whether the firewall is protected against a change to the firewall policy association. Use
this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When
you create a firewall, the operation initializes this setting to TRUE
.
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy
association. Use this setting to protect against accidentally modifying the firewall policy for a firewall
that is in use. When you create a firewall, the operation initializes this setting to TRUE
.public Boolean isFirewallPolicyChangeProtection()
A setting indicating whether the firewall is protected against a change to the firewall policy association. Use
this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When
you create a firewall, the operation initializes this setting to TRUE
.
TRUE
.public void setDescription(String description)
A description of the firewall.
description
- A description of the firewall.public String getDescription()
A description of the firewall.
public Firewall withDescription(String description)
A description of the firewall.
description
- A description of the firewall.public void setFirewallId(String firewallId)
The unique identifier for the firewall.
firewallId
- The unique identifier for the firewall.public String getFirewallId()
The unique identifier for the firewall.
public Firewall withFirewallId(String firewallId)
The unique identifier for the firewall.
firewallId
- The unique identifier for the firewall.public void setTags(Collection<Tag> tags)
tags
- public Firewall withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public Firewall withTags(Collection<Tag> tags)
tags
- public void setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
encryptionConfiguration
- A complex type that contains the Amazon Web Services KMS encryption configuration settings for your
firewall.public EncryptionConfiguration getEncryptionConfiguration()
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
public Firewall withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall.
encryptionConfiguration
- A complex type that contains the Amazon Web Services KMS encryption configuration settings for your
firewall.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.