@Generated(value="software.amazon.awssdk:codegen") public final class CreateFirewallRuleRequest extends Route53ResolverRequest implements ToCopyableBuilder<CreateFirewallRuleRequest.Builder,CreateFirewallRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateFirewallRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Action |
action()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain
list:
|
String |
actionAsString()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain
list:
|
BlockOverrideDnsType |
blockOverrideDnsType()
The DNS record's type.
|
String |
blockOverrideDnsTypeAsString()
The DNS record's type.
|
String |
blockOverrideDomain()
The custom DNS record to send back in response to the query.
|
Integer |
blockOverrideTtl()
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override
record.
|
BlockResponse |
blockResponse()
The way that you want DNS Firewall to block the request, used with the rule action setting
BLOCK. |
String |
blockResponseAsString()
The way that you want DNS Firewall to block the request, used with the rule action setting
BLOCK. |
static CreateFirewallRuleRequest.Builder |
builder() |
String |
creatorRequestId()
A unique string that identifies the request and that allows you to retry failed requests without the risk of
running the operation twice.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
firewallDomainListId()
The ID of the domain list that you want to use in the rule.
|
String |
firewallRuleGroupId()
The unique identifier of the firewall rule group where you want to create the rule.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
A name that lets you identify the rule in the rule group.
|
Integer |
priority()
The setting that determines the processing order of the rule in the rule group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFirewallRuleRequest.Builder> |
serializableBuilderClass() |
CreateFirewallRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String creatorRequestId()
A unique string that identifies the request and that allows you to retry failed requests without the risk of
running the operation twice. CreatorRequestId can be any unique string, for example, a date/time
stamp.
CreatorRequestId can be any unique string, for example, a
date/time stamp.public final String firewallRuleGroupId()
The unique identifier of the firewall rule group where you want to create the rule.
public final String firewallDomainListId()
The ID of the domain list that you want to use in the rule.
public final Integer priority()
The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.
You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.
public final Action action()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
ALLOW - Permit the request to go through.
ALERT - Permit the request and send metrics and logs to Cloud Watch.
BLOCK - Disallow the request. This option requires additional details in the rule's
BlockResponse.
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
ALLOW - Permit the request to go through.
ALERT - Permit the request and send metrics and logs to Cloud Watch.
BLOCK - Disallow the request. This option requires additional details in the rule's
BlockResponse.
Actionpublic final String actionAsString()
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
ALLOW - Permit the request to go through.
ALERT - Permit the request and send metrics and logs to Cloud Watch.
BLOCK - Disallow the request. This option requires additional details in the rule's
BlockResponse.
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
ALLOW - Permit the request to go through.
ALERT - Permit the request and send metrics and logs to Cloud Watch.
BLOCK - Disallow the request. This option requires additional details in the rule's
BlockResponse.
Actionpublic final BlockResponse blockResponse()
The way that you want DNS Firewall to block the request, used with the rule action setting BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling details
in the rule's BlockOverride* settings.
This setting is required if the rule action setting is BLOCK.
If the service returns an enum value that is not available in the current SDK version, blockResponse
will return BlockResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
blockResponseAsString().
BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for
it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling
details in the rule's BlockOverride* settings.
This setting is required if the rule action setting is BLOCK.
BlockResponsepublic final String blockResponseAsString()
The way that you want DNS Firewall to block the request, used with the rule action setting BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling details
in the rule's BlockOverride* settings.
This setting is required if the rule action setting is BLOCK.
If the service returns an enum value that is not available in the current SDK version, blockResponse
will return BlockResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
blockResponseAsString().
BLOCK.
NODATA - Respond indicating that the query was successful, but no response is available for
it.
NXDOMAIN - Respond indicating that the domain name that's in the query doesn't exist.
OVERRIDE - Provide a custom override in the response. This option requires custom handling
details in the rule's BlockOverride* settings.
This setting is required if the rule action setting is BLOCK.
BlockResponsepublic final String blockOverrideDomain()
The custom DNS record to send back in response to the query. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
BLOCK
with a BlockResponse setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
public final BlockOverrideDnsType blockOverrideDnsType()
The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule action BLOCK with a BlockResponse
setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
If the service returns an enum value that is not available in the current SDK version,
blockOverrideDnsType will return BlockOverrideDnsType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from blockOverrideDnsTypeAsString().
BlockOverrideDomain. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
BlockOverrideDnsTypepublic final String blockOverrideDnsTypeAsString()
The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule action BLOCK with a BlockResponse
setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
If the service returns an enum value that is not available in the current SDK version,
blockOverrideDnsType will return BlockOverrideDnsType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from blockOverrideDnsTypeAsString().
BlockOverrideDomain. Used for the rule action BLOCK with a
BlockResponse setting of OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
BlockOverrideDnsTypepublic final Integer blockOverrideTtl()
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override
record. Used for the rule action BLOCK with a BlockResponse setting of
OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
BLOCK with a BlockResponse setting of
OVERRIDE.
This setting is required if the BlockResponse setting is OVERRIDE.
public final String name()
A name that lets you identify the rule in the rule group.
public CreateFirewallRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateFirewallRuleRequest.Builder,CreateFirewallRuleRequest>toBuilder in class Route53ResolverRequestpublic static CreateFirewallRuleRequest.Builder builder()
public static Class<? extends CreateFirewallRuleRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.