Interface ResolverRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResolverRule.Builder,
,ResolverRule> SdkBuilder<ResolverRule.Builder,
,ResolverRule> SdkPojo
- Enclosing class:
ResolverRule
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN (Amazon Resource Name) for the Resolver rule specified byId
.creationTime
(String creationTime) The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).creatorRequestId
(String creatorRequestId) A unique string that you specified when you created the Resolver rule.domainName
(String domainName) DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
.The ID that Resolver assigned to the Resolver rule when you created it.modificationTime
(String modificationTime) The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).The name for the Resolver rule, which you specified when you created the Resolver rule.When a rule is shared with another Amazon Web Services account, the account ID of the account that the rule is shared with.resolverEndpointId
(String resolverEndpointId) The ID of the endpoint that the rule is associated with.When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.ruleType
(RuleTypeOption ruleType) When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.shareStatus
(String 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.shareStatus
(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.A code that specifies the current status of the Resolver rule.status
(ResolverRuleStatus status) A code that specifies the current status of the Resolver rule.statusMessage
(String statusMessage) A detailed description of the status of a Resolver rule.targetIps
(Collection<TargetAddress> targetIps) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.targetIps
(Consumer<TargetAddress.Builder>... targetIps) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.targetIps
(TargetAddress... targetIps) An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The ID that Resolver assigned to the Resolver rule when you created it.
- Parameters:
id
- The ID that Resolver assigned to the Resolver rule when you created it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 running the operation twice.- Parameters:
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 running the operation twice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN (Amazon Resource Name) for the Resolver rule specified by
Id
.- Parameters:
arn
- The ARN (Amazon Resource Name) for the Resolver rule specified byId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).- Parameters:
domainName
- DNS queries for this domain name are forwarded to the IP addresses that are specified inTargetIps
. 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:
- Returns a reference to this object so that method calls can be chained together.
-
status
A code that specifies the current status of the Resolver rule.
- Parameters:
status
- A code that specifies the current status of the Resolver rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
A code that specifies the current status of the Resolver rule.
- Parameters:
status
- A code that specifies the current status of the Resolver rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
A detailed description of the status of a Resolver rule.
- Parameters:
statusMessage
- A detailed description of the status of a Resolver rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
.- Parameters:
ruleType
- When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.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
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
.- Parameters:
ruleType
- When you want to forward DNS queries for specified domain name to resolvers on your network, specifyFORWARD
.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
FORWARD
forRuleType
. To then have Resolver process queries for apex.example.com, you create a rule and specifySYSTEM
forRuleType
.Currently, only Resolver can create rules that have a value of
RECURSIVE
forRuleType
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name for the Resolver rule, which you specified when you created the Resolver rule.
- Parameters:
name
- The name for the Resolver rule, which you specified when you created the Resolver rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theTargetAddress.Builder
avoiding the need to create one manually viaTargetAddress.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetIps(List<TargetAddress>)
.- Parameters:
targetIps
- a consumer that will call methods onTargetAddress.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resolverEndpointId
The ID of the endpoint that the rule is associated with.
- Parameters:
resolverEndpointId
- The ID of the endpoint that the rule is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
When a rule is shared with another Amazon Web Services account, the account ID of the account that the rule is shared with.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
- Parameters:
creationTime
- The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modificationTime
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
- Parameters:
modificationTime
- The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-