public static interface ResolverRule.Builder extends SdkPojo, CopyableBuilder<ResolverRule.Builder,ResolverRule>
Modifier and Type | Method and Description |
---|---|
ResolverRule.Builder |
arn(String arn)
The ARN (Amazon Resource Name) for the resolver rule specified by
Id . |
ResolverRule.Builder |
creatorRequestId(String creatorRequestId)
A unique string that you specified when you created the resolver rule.
|
ResolverRule.Builder |
domainName(String domainName)
DNS queries for this domain name are forwarded to the IP addresses that are specified in
TargetIps . |
ResolverRule.Builder |
id(String id)
The ID that Resolver assigned to the resolver rule when you created it.
|
ResolverRule.Builder |
name(String name)
The name for the resolver rule, which you specified when you created the resolver rule.
|
ResolverRule.Builder |
ownerId(String ownerId)
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
|
ResolverRule.Builder |
resolverEndpointId(String resolverEndpointId)
The ID of the endpoint that the rule is associated with.
|
ResolverRule.Builder |
ruleType(RuleTypeOption ruleType)
This value is always
FORWARD . |
ResolverRule.Builder |
ruleType(String ruleType)
This value is always
FORWARD . |
ResolverRule.Builder |
shareStatus(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.
|
ResolverRule.Builder |
shareStatus(String 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.
|
ResolverRule.Builder |
status(ResolverRuleStatus status)
A code that specifies the current status of the resolver rule.
|
ResolverRule.Builder |
status(String status)
A code that specifies the current status of the resolver rule.
|
ResolverRule.Builder |
statusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
|
ResolverRule.Builder |
targetIps(Collection<TargetAddress> targetIps)
An array that contains the IP addresses and ports that you want to forward
|
ResolverRule.Builder |
targetIps(Consumer<TargetAddress.Builder>... targetIps)
An array that contains the IP addresses and ports that you want to forward
|
ResolverRule.Builder |
targetIps(TargetAddress... targetIps)
An array that contains the IP addresses and ports that you want to forward
|
copy
applyMutation, build
ResolverRule.Builder id(String id)
The ID that Resolver assigned to the resolver rule when you created it.
id
- The ID that Resolver assigned to the resolver rule when you created it.ResolverRule.Builder creatorRequestId(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
- 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.ResolverRule.Builder arn(String arn)
The ARN (Amazon Resource Name) for the resolver rule specified by Id
.
arn
- The ARN (Amazon Resource Name) for the resolver rule specified by Id
.ResolverRule.Builder domainName(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).
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).ResolverRule.Builder status(String status)
A code that specifies the current status of the resolver rule.
status
- A code that specifies the current status of the resolver rule.ResolverRuleStatus
,
ResolverRuleStatus
ResolverRule.Builder status(ResolverRuleStatus status)
A code that specifies the current status of the resolver rule.
status
- A code that specifies the current status of the resolver rule.ResolverRuleStatus
,
ResolverRuleStatus
ResolverRule.Builder statusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
statusMessage
- A detailed description of the status of a resolver rule.ResolverRule.Builder ruleType(String ruleType)
This value is always FORWARD
. Other resolver rule types aren't supported.
ruleType
- This value is always FORWARD
. Other resolver rule types aren't supported.RuleTypeOption
,
RuleTypeOption
ResolverRule.Builder ruleType(RuleTypeOption ruleType)
This value is always FORWARD
. Other resolver rule types aren't supported.
ruleType
- This value is always FORWARD
. Other resolver rule types aren't supported.RuleTypeOption
,
RuleTypeOption
ResolverRule.Builder name(String name)
The name for the resolver rule, which you specified when you created the resolver rule.
name
- The name for the resolver rule, which you specified when you created the resolver rule.ResolverRule.Builder targetIps(Collection<TargetAddress> targetIps)
An array that contains the IP addresses and ports that you want to forward
targetIps
- An array that contains the IP addresses and ports that you want to forwardResolverRule.Builder targetIps(TargetAddress... targetIps)
An array that contains the IP addresses and ports that you want to forward
targetIps
- An array that contains the IP addresses and ports that you want to forwardResolverRule.Builder targetIps(Consumer<TargetAddress.Builder>... targetIps)
An array that contains the IP addresses and ports that you want to forward
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #targetIps(List)
.targetIps
- a consumer that will call methods on List.Builder
#targetIps(List)
ResolverRule.Builder resolverEndpointId(String resolverEndpointId)
The ID of the endpoint that the rule is associated with.
resolverEndpointId
- The ID of the endpoint that the rule is associated with.ResolverRule.Builder ownerId(String ownerId)
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
ownerId
- When a rule is shared with another AWS account, the account ID of the account that the rule is shared
with.ResolverRule.Builder shareStatus(String 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.
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.ShareStatus
,
ShareStatus
ResolverRule.Builder shareStatus(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.
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.ShareStatus
,
ShareStatus
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.