@Generated(value="software.amazon.awssdk:codegen") public final class ResolverRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResolverRule.Builder,ResolverRule>
For queries that originate in your VPC, detailed information about a resolver rule, which specifies how to route DNS
queries out of the VPC. The ResolverRule
parameter appears in the response to a
CreateResolverRule, DeleteResolverRule, GetResolverRule, ListResolverRules, or
UpdateResolverRule request.
Modifier and Type | Class and Description |
---|---|
static interface |
ResolverRule.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The ARN (Amazon Resource Name) for the resolver rule specified by
Id . |
static ResolverRule.Builder |
builder() |
String |
creatorRequestId()
A unique string that you specified when you created the resolver rule.
|
String |
domainName()
DNS queries for this domain name are forwarded to the IP addresses that are specified in
TargetIps . |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID that Resolver assigned to the resolver rule when you created it.
|
String |
name()
The name for the resolver rule, which you specified when you created the resolver rule.
|
String |
ownerId()
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
|
String |
resolverEndpointId()
The ID of the endpoint that the rule is associated with.
|
RuleTypeOption |
ruleType()
This value is always
FORWARD . |
String |
ruleTypeAsString()
This value is always
FORWARD . |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResolverRule.Builder> |
serializableBuilderClass() |
ShareStatus |
shareStatus()
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or
another account is sharing the rule with the current account.
|
String |
shareStatusAsString()
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or
another account is sharing the rule with the current account.
|
ResolverRuleStatus |
status()
A code that specifies the current status of the resolver rule.
|
String |
statusAsString()
A code that specifies the current status of the resolver rule.
|
String |
statusMessage()
A detailed description of the status of a resolver rule.
|
List<TargetAddress> |
targetIps()
An array that contains the IP addresses and ports that you want to forward
|
ResolverRule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The ID that Resolver assigned to the resolver rule when you created it.
public String creatorRequestId()
A unique string that you specified when you created the resolver rule. CreatorRequestId
identifies
the request and allows failed requests to be retried without the risk of executing the operation twice.
CreatorRequestId
identifies the request and allows failed requests to be retried without the risk of executing the
operation twice.public String arn()
The ARN (Amazon Resource Name) for the resolver rule specified by Id
.
Id
.public String domainName()
DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps
.
If a query matches multiple resolver rules (example.com and www.example.com), the query is routed using the
resolver rule that contains the most specific domain name (www.example.com).
TargetIps
. If a query matches multiple resolver rules (example.com and www.example.com), the
query is routed using the resolver rule that contains the most specific domain name (www.example.com).public ResolverRuleStatus status()
A code that specifies the current status of the resolver rule.
If the service returns an enum value that is not available in the current SDK version, status
will
return ResolverRuleStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ResolverRuleStatus
public String statusAsString()
A code that specifies the current status of the resolver rule.
If the service returns an enum value that is not available in the current SDK version, status
will
return ResolverRuleStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ResolverRuleStatus
public String statusMessage()
A detailed description of the status of a resolver rule.
public RuleTypeOption ruleType()
This value is always FORWARD
. Other resolver rule types aren't supported.
If the service returns an enum value that is not available in the current SDK version, ruleType
will
return RuleTypeOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ruleTypeAsString()
.
FORWARD
. Other resolver rule types aren't supported.RuleTypeOption
public String ruleTypeAsString()
This value is always FORWARD
. Other resolver rule types aren't supported.
If the service returns an enum value that is not available in the current SDK version, ruleType
will
return RuleTypeOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ruleTypeAsString()
.
FORWARD
. Other resolver rule types aren't supported.RuleTypeOption
public String name()
The name for the resolver rule, which you specified when you created the resolver rule.
public List<TargetAddress> targetIps()
An array that contains the IP addresses and ports that you want to forward
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String resolverEndpointId()
The ID of the endpoint that the rule is associated with.
public String ownerId()
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
public ShareStatus shareStatus()
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
If the service returns an enum value that is not available in the current SDK version, shareStatus
will
return ShareStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareStatusAsString()
.
ShareStatus
public String shareStatusAsString()
Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.
If the service returns an enum value that is not available in the current SDK version, shareStatus
will
return ShareStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareStatusAsString()
.
ShareStatus
public ResolverRule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResolverRule.Builder,ResolverRule>
public static ResolverRule.Builder builder()
public static Class<? extends ResolverRule.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.