@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResolverRule extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ResolverRule() |
Modifier and Type | Method and Description |
---|---|
ResolverRule |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN (Amazon Resource Name) for the resolver rule specified by
Id . |
String |
getCreatorRequestId()
A unique string that you specified when you created the resolver rule.
|
String |
getDomainName()
DNS queries for this domain name are forwarded to the IP addresses that are specified in
TargetIps . |
String |
getId()
The ID that Resolver assigned to the resolver rule when you created it.
|
String |
getName()
The name for the resolver rule, which you specified when you created the resolver rule.
|
String |
getOwnerId()
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
|
String |
getResolverEndpointId()
The ID of the endpoint that the rule is associated with.
|
String |
getRuleType()
This value is always
FORWARD . |
String |
getShareStatus()
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 |
getStatus()
A code that specifies the current status of the resolver rule.
|
String |
getStatusMessage()
A detailed description of the status of a resolver rule.
|
List<TargetAddress> |
getTargetIps()
An array that contains the IP addresses and ports that you want to forward
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN (Amazon Resource Name) for the resolver rule specified by
Id . |
void |
setCreatorRequestId(String creatorRequestId)
A unique string that you specified when you created the resolver rule.
|
void |
setDomainName(String domainName)
DNS queries for this domain name are forwarded to the IP addresses that are specified in
TargetIps . |
void |
setId(String id)
The ID that Resolver assigned to the resolver rule when you created it.
|
void |
setName(String name)
The name for the resolver rule, which you specified when you created the resolver rule.
|
void |
setOwnerId(String ownerId)
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
|
void |
setResolverEndpointId(String resolverEndpointId)
The ID of the endpoint that the rule is associated with.
|
void |
setRuleType(String ruleType)
This value is always
FORWARD . |
void |
setShareStatus(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.
|
void |
setStatus(String status)
A code that specifies the current status of the resolver rule.
|
void |
setStatusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
|
void |
setTargetIps(Collection<TargetAddress> targetIps)
An array that contains the IP addresses and ports that you want to forward
|
String |
toString()
Returns a string representation of this object.
|
ResolverRule |
withArn(String arn)
The ARN (Amazon Resource Name) for the resolver rule specified by
Id . |
ResolverRule |
withCreatorRequestId(String creatorRequestId)
A unique string that you specified when you created the resolver rule.
|
ResolverRule |
withDomainName(String domainName)
DNS queries for this domain name are forwarded to the IP addresses that are specified in
TargetIps . |
ResolverRule |
withId(String id)
The ID that Resolver assigned to the resolver rule when you created it.
|
ResolverRule |
withName(String name)
The name for the resolver rule, which you specified when you created the resolver rule.
|
ResolverRule |
withOwnerId(String ownerId)
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
|
ResolverRule |
withResolverEndpointId(String resolverEndpointId)
The ID of the endpoint that the rule is associated with.
|
ResolverRule |
withRuleType(RuleTypeOption ruleType)
This value is always
FORWARD . |
ResolverRule |
withRuleType(String ruleType)
This value is always
FORWARD . |
ResolverRule |
withShareStatus(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 |
withShareStatus(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 |
withStatus(ResolverRuleStatus status)
A code that specifies the current status of the resolver rule.
|
ResolverRule |
withStatus(String status)
A code that specifies the current status of the resolver rule.
|
ResolverRule |
withStatusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
|
ResolverRule |
withTargetIps(Collection<TargetAddress> targetIps)
An array that contains the IP addresses and ports that you want to forward
|
ResolverRule |
withTargetIps(TargetAddress... targetIps)
An array that contains the IP addresses and ports that you want to forward
|
public void setId(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.public String getId()
The ID that Resolver assigned to the resolver rule when you created it.
public ResolverRule withId(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.public void setCreatorRequestId(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.public String getCreatorRequestId()
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 ResolverRule withCreatorRequestId(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.public void setArn(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
.public String getArn()
The ARN (Amazon Resource Name) for the resolver rule specified by Id
.
Id
.public ResolverRule withArn(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
.public void setDomainName(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).public String getDomainName()
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 ResolverRule withDomainName(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).public void setStatus(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
public String getStatus()
A code that specifies the current status of the resolver rule.
ResolverRuleStatus
public ResolverRule withStatus(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
public ResolverRule withStatus(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
public void setStatusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
statusMessage
- A detailed description of the status of a resolver rule.public String getStatusMessage()
A detailed description of the status of a resolver rule.
public ResolverRule withStatusMessage(String statusMessage)
A detailed description of the status of a resolver rule.
statusMessage
- A detailed description of the status of a resolver rule.public void setRuleType(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
public String getRuleType()
This value is always FORWARD
. Other resolver rule types aren't supported.
FORWARD
. Other resolver rule types aren't supported.RuleTypeOption
public ResolverRule withRuleType(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
public ResolverRule withRuleType(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
public void setName(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.public String getName()
The name for the resolver rule, which you specified when you created the resolver rule.
public ResolverRule withName(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.public List<TargetAddress> getTargetIps()
An array that contains the IP addresses and ports that you want to forward
public void setTargetIps(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 forwardpublic ResolverRule withTargetIps(TargetAddress... targetIps)
An array that contains the IP addresses and ports that you want to forward
NOTE: This method appends the values to the existing list (if any). Use
setTargetIps(java.util.Collection)
or withTargetIps(java.util.Collection)
if you want to
override the existing values.
targetIps
- An array that contains the IP addresses and ports that you want to forwardpublic ResolverRule withTargetIps(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 forwardpublic void setResolverEndpointId(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.public String getResolverEndpointId()
The ID of the endpoint that the rule is associated with.
public ResolverRule withResolverEndpointId(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.public void setOwnerId(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.public String getOwnerId()
When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.
public ResolverRule withOwnerId(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.public void setShareStatus(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
public String getShareStatus()
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
public ResolverRule withShareStatus(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
public ResolverRule withShareStatus(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
public String toString()
toString
in class Object
Object.toString()
public ResolverRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.