Class FirewallPolicyV2Response
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FirewallPolicyV2Response.Builder,FirewallPolicyV2Response>
The high-level properties of a Next Generation policy. This includes the policy's identity, status, consumed
capacity, and association count. Network Firewall returns this object in response to the Next Generation policy
operations. To retrieve the policy's rule groups and settings, use the FirewallPolicyV2 object.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final IntegerThe number of firewall engine rule capacity units that the policy's firewall section currently consumes.final IntegerThe number of IPS domain list capacity units that the policy's IPS section currently consumes.final IntegerThe number of IPS engine rule capacity units that the policy's IPS section currently consumes.final StringA description of the Next Generation policy.final EncryptionConfigurationA complex type that contains the Amazon Web Services KMS encryption configuration settings for your Next Generation policy.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List<FirewallPolicyError> errors()Any configuration errors that apply to the Next Generation policy.final StringThe Amazon Resource Name (ARN) of the Next Generation policy.final StringThe unique identifier of the Next Generation policy.final StringThe descriptive name of the Next Generation policy.final ResourceStatusThe current status of the Next Generation policy.final StringThe current status of the Next Generation policy.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Errors property.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final InstantThe last time that the Next Generation policy was changed.final IntegerThe number of firewalls that are associated with the Next Generation policy.static Class<? extends FirewallPolicyV2Response.Builder> final StringAdditional information about the current status of the Next Generation policy.tags()The key-value tag pairs that are associated with the Next Generation policy.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
firewallPolicyV2Name
The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.
- Returns:
- The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.
-
firewallPolicyV2Arn
The Amazon Resource Name (ARN) of the Next Generation policy.
- Returns:
- The Amazon Resource Name (ARN) of the Next Generation policy.
-
firewallPolicyV2Id
The unique identifier of the Next Generation policy. Network Firewall assigns this identifier when you create the policy.
- Returns:
- The unique identifier of the Next Generation policy. Network Firewall assigns this identifier when you create the policy.
-
description
A description of the Next Generation policy.
- Returns:
- A description of the Next Generation policy.
-
firewallPolicyV2Status
The current status of the Next Generation policy. A policy must be in the
ACTIVEstate before you can use it in a firewall.If the service returns an enum value that is not available in the current SDK version,
firewallPolicyV2Statuswill returnResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfirewallPolicyV2StatusAsString().- Returns:
- The current status of the Next Generation policy. A policy must be in the
ACTIVEstate before you can use it in a firewall. - See Also:
-
firewallPolicyV2StatusAsString
The current status of the Next Generation policy. A policy must be in the
ACTIVEstate before you can use it in a firewall.If the service returns an enum value that is not available in the current SDK version,
firewallPolicyV2Statuswill returnResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfirewallPolicyV2StatusAsString().- Returns:
- The current status of the Next Generation policy. A policy must be in the
ACTIVEstate before you can use it in a firewall. - See Also:
-
statusMessage
Additional information about the current status of the Next Generation policy.
- Returns:
- Additional information about the current status of the Next Generation policy.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
The key-value tag pairs that are associated with the Next Generation policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The key-value tag pairs that are associated with the Next Generation policy.
-
consumedFirewallRuleCapacity
The number of firewall engine rule capacity units that the policy's firewall section currently consumes.
- Returns:
- The number of firewall engine rule capacity units that the policy's firewall section currently consumes.
-
consumedIpsRuleCapacity
The number of IPS engine rule capacity units that the policy's IPS section currently consumes.
- Returns:
- The number of IPS engine rule capacity units that the policy's IPS section currently consumes.
-
consumedIpsDomainCapacity
The number of IPS domain list capacity units that the policy's IPS section currently consumes.
- Returns:
- The number of IPS domain list capacity units that the policy's IPS section currently consumes.
-
numberOfAssociations
The number of firewalls that are associated with the Next Generation policy.
- Returns:
- The number of firewalls that are associated with the Next Generation policy.
-
encryptionConfiguration
A complex type that contains the Amazon Web Services KMS encryption configuration settings for your Next Generation policy.
- Returns:
- A complex type that contains the Amazon Web Services KMS encryption configuration settings for your Next Generation policy.
-
hasErrors
public final boolean hasErrors()For responses, this returns true if the service returned a value for the Errors property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
errors
Any configuration errors that apply to the Next Generation policy. Network Firewall detects these errors asynchronously, after you create or update the policy, so an error can appear after the request that caused it has already succeeded. Each entry describes the problem and how to resolve it, and Network Firewall clears it automatically after you resolve the problem.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasErrors()method.- Returns:
- Any configuration errors that apply to the Next Generation policy. Network Firewall detects these errors asynchronously, after you create or update the policy, so an error can appear after the request that caused it has already succeeded. Each entry describes the problem and how to resolve it, and Network Firewall clears it automatically after you resolve the problem.
-
lastModifiedTime
The last time that the Next Generation policy was changed.
- Returns:
- The last time that the Next Generation policy was changed.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FirewallPolicyV2Response.Builder,FirewallPolicyV2Response> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-