Class ResolverRule
- java.lang.Object
-
- software.amazon.awssdk.services.route53resolver.model.ResolverRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResolverRule.Builder,ResolverRule>
@Generated("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
ResolverRuleparameter appears in the response to a CreateResolverRule, DeleteResolverRule, GetResolverRule, ListResolverRules, or UpdateResolverRule request.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResolverRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The ARN (Amazon Resource Name) for the Resolver rule specified byId.static ResolverRule.Builderbuilder()StringcreationTime()The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).StringcreatorRequestId()A unique string that you specified when you created the Resolver rule.StringdomainName()DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTargetIps()For responses, this returns true if the service returned a value for the TargetIps property.Stringid()The ID that Resolver assigned to the Resolver rule when you created it.StringmodificationTime()The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).Stringname()The name for the Resolver rule, which you specified when you created the Resolver rule.StringownerId()When a rule is shared with another Amazon Web Services account, the account ID of the account that the rule is shared with.StringresolverEndpointId()The ID of the endpoint that the rule is associated with.RuleTypeOptionruleType()When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD.StringruleTypeAsString()When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResolverRule.Builder>serializableBuilderClass()ShareStatusshareStatus()Whether the rule 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.StringshareStatusAsString()Whether the rule 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.ResolverRuleStatusstatus()A code that specifies the current status of the Resolver rule.StringstatusAsString()A code that specifies the current status of the Resolver rule.StringstatusMessage()A detailed description of the status of a Resolver rule.List<TargetAddress>targetIps()An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.ResolverRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The ID that Resolver assigned to the Resolver rule when you created it.
- Returns:
- The ID that Resolver assigned to the Resolver rule when you created it.
-
creatorRequestId
public final String creatorRequestId()
A unique string that you specified when you created the Resolver rule.
CreatorRequestIdidentifies the request and allows failed requests to be retried without the risk of running the operation twice.- Returns:
- A unique string that you specified when you created the Resolver rule.
CreatorRequestIdidentifies the request and allows failed requests to be retried without the risk of running the operation twice.
-
arn
public final String arn()
The ARN (Amazon Resource Name) for the Resolver rule specified by
Id.- Returns:
- The ARN (Amazon Resource Name) for the Resolver rule specified by
Id.
-
domainName
public final 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).- Returns:
- 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).
-
status
public final 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,
statuswill returnResolverRuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- A code that specifies the current status of the Resolver rule.
- See Also:
ResolverRuleStatus
-
statusAsString
public final 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,
statuswill returnResolverRuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- A code that specifies the current status of the Resolver rule.
- See Also:
ResolverRuleStatus
-
statusMessage
public final String statusMessage()
A detailed description of the status of a Resolver rule.
- Returns:
- A detailed description of the status of a Resolver rule.
-
ruleType
public final RuleTypeOption ruleType()
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType.If the service returns an enum value that is not available in the current SDK version,
ruleTypewill returnRuleTypeOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleTypeAsString().- Returns:
- When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType. - See Also:
RuleTypeOption
-
ruleTypeAsString
public final String ruleTypeAsString()
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType.If the service returns an enum value that is not available in the current SDK version,
ruleTypewill returnRuleTypeOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleTypeAsString().- Returns:
- When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD.When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify
SYSTEM.For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify
FORWARDforRuleType. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEMforRuleType.Currently, only Resolver can create rules that have a value of
RECURSIVEforRuleType. - See Also:
RuleTypeOption
-
name
public final String name()
The name for the Resolver rule, which you specified when you created the Resolver rule.
- Returns:
- The name for the Resolver rule, which you specified when you created the Resolver rule.
-
hasTargetIps
public final boolean hasTargetIps()
For responses, this returns true if the service returned a value for the TargetIps 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.
-
targetIps
public final List<TargetAddress> targetIps()
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network.
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
hasTargetIps()method.- Returns:
- An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network.
-
resolverEndpointId
public final String resolverEndpointId()
The ID of the endpoint that the rule is associated with.
- Returns:
- The ID of the endpoint that the rule is associated with.
-
ownerId
public final String ownerId()
When a rule is shared with another Amazon Web Services account, the account ID of the account that the rule is shared with.
- Returns:
- When a rule is shared with another Amazon Web Services account, the account ID of the account that the rule is shared with.
-
shareStatus
public final ShareStatus shareStatus()
Whether the rule 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,
shareStatuswill returnShareStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromshareStatusAsString().- Returns:
- Whether the rule 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.
- See Also:
ShareStatus
-
shareStatusAsString
public final String shareStatusAsString()
Whether the rule 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,
shareStatuswill returnShareStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromshareStatusAsString().- Returns:
- Whether the rule 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.
- See Also:
ShareStatus
-
creationTime
public final String creationTime()
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
- Returns:
- The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
-
modificationTime
public final String modificationTime()
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
- Returns:
- The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
-
toBuilder
public ResolverRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResolverRule.Builder,ResolverRule>
-
builder
public static ResolverRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResolverRule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-