@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 |
getCreationTime()
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
|
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 |
getModificationTime()
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time
(UTC).
|
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 Amazon Web Services 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()
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD . |
String |
getShareStatus()
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.
|
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 an outbound endpoint forwards DNS queries to.
|
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 |
setCreationTime(String creationTime)
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
|
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 |
setModificationTime(String modificationTime)
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time
(UTC).
|
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 Amazon Web Services 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)
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD . |
void |
setShareStatus(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.
|
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 an outbound endpoint forwards DNS queries to.
|
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 |
withCreationTime(String creationTime)
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
|
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 |
withModificationTime(String modificationTime)
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time
(UTC).
|
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 Amazon Web Services 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)
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD . |
ResolverRule |
withRuleType(String ruleType)
When you want to forward DNS queries for specified domain name to resolvers on your network, specify
FORWARD . |
ResolverRule |
withShareStatus(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.
|
ResolverRule |
withShareStatus(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.
|
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 an outbound endpoint forwards DNS queries to.
|
ResolverRule |
withTargetIps(TargetAddress... targetIps)
An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to.
|
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 running 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 running 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 running the operation twice.
CreatorRequestId
identifies the request and allows failed requests to be retried without the risk of running 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 running 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 running 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)
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
for RuleType
. To then have Resolver process queries for apex.example.com, you
create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
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
for RuleType
. To then have Resolver process queries for
apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for
RuleType
.
RuleTypeOption
public String getRuleType()
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
for RuleType
. To then have Resolver process queries for apex.example.com, you
create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
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
for RuleType
. To then have Resolver process queries for
apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for
RuleType
.
RuleTypeOption
public ResolverRule withRuleType(String 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
for RuleType
. To then have Resolver process queries for apex.example.com, you
create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
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
for RuleType
. To then have Resolver process queries for
apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for
RuleType
.
RuleTypeOption
public ResolverRule withRuleType(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
FORWARD
for RuleType
. To then have Resolver process queries for apex.example.com, you
create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for RuleType
.
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
for RuleType
. To then have Resolver process queries for
apex.example.com, you create a rule and specify SYSTEM
for RuleType
.
Currently, only Resolver can create rules that have a value of RECURSIVE
for
RuleType
.
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 an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network.
public void setTargetIps(Collection<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.
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.public ResolverRule withTargetIps(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.
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 an outbound endpoint forwards DNS queries to.
Typically, these are the IP addresses of DNS resolvers on your network.public ResolverRule withTargetIps(Collection<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.
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.public 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 Amazon Web Services account, the account ID of the account that the rule is shared with.
ownerId
- When a rule is shared with another Amazon Web Services account, the account ID of the account that the
rule is shared with.public String getOwnerId()
When a rule is shared with another Amazon Web Services 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 Amazon Web Services account, the account ID of the account that the rule is shared with.
ownerId
- When a rule is shared with another Amazon Web Services account, the account ID of the account that the
rule is shared with.public void setShareStatus(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
- 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
public String getShareStatus()
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
public ResolverRule withShareStatus(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
- 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
public ResolverRule withShareStatus(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.
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
public void setCreationTime(String creationTime)
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
creationTime
- The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time
(UTC).public String getCreationTime()
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
public ResolverRule withCreationTime(String creationTime)
The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).
creationTime
- The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time
(UTC).public void setModificationTime(String modificationTime)
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
modificationTime
- The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal
Time (UTC).public String getModificationTime()
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
public ResolverRule withModificationTime(String modificationTime)
The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).
modificationTime
- The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal
Time (UTC).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.