public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements java.io.Serializable
ReplaceNetworkAclEntry operation.
Replaces an entry (i.e., rule) in a network ACL. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
| コンストラクタと説明 |
|---|
ReplaceNetworkAclEntryRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrBlock()
The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24). |
java.lang.Boolean |
getEgress()
Whether this rule applies to egress traffic from the subnet
(
true) or ingress traffic (false). |
IcmpTypeCode |
getIcmpTypeCode()
ICMP values.
|
java.lang.String |
getNetworkAclId()
ID of the ACL where the entry will be replaced.
|
PortRange |
getPortRange()
Port ranges.
|
java.lang.String |
getProtocol()
IP protocol the rule applies to.
|
java.lang.String |
getRuleAction()
Whether to allow or deny traffic that matches the rule.
|
java.lang.Integer |
getRuleNumber()
Rule number of the entry to replace.
|
int |
hashCode() |
java.lang.Boolean |
isEgress()
Whether this rule applies to egress traffic from the subnet
(
true) or ingress traffic (false). |
void |
setCidrBlock(java.lang.String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24). |
void |
setEgress(java.lang.Boolean egress)
Whether this rule applies to egress traffic from the subnet
(
true) or ingress traffic (false). |
void |
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values.
|
void |
setNetworkAclId(java.lang.String networkAclId)
ID of the ACL where the entry will be replaced.
|
void |
setPortRange(PortRange portRange)
Port ranges.
|
void |
setProtocol(java.lang.String protocol)
IP protocol the rule applies to.
|
void |
setRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule.
|
void |
setRuleAction(java.lang.String ruleAction)
Whether to allow or deny traffic that matches the rule.
|
void |
setRuleNumber(java.lang.Integer ruleNumber)
Rule number of the entry to replace.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceNetworkAclEntryRequest |
withCidrBlock(java.lang.String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24). |
ReplaceNetworkAclEntryRequest |
withEgress(java.lang.Boolean egress)
Whether this rule applies to egress traffic from the subnet
(
true) or ingress traffic (false). |
ReplaceNetworkAclEntryRequest |
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values.
|
ReplaceNetworkAclEntryRequest |
withNetworkAclId(java.lang.String networkAclId)
ID of the ACL where the entry will be replaced.
|
ReplaceNetworkAclEntryRequest |
withPortRange(PortRange portRange)
Port ranges.
|
ReplaceNetworkAclEntryRequest |
withProtocol(java.lang.String protocol)
IP protocol the rule applies to.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(RuleAction ruleAction)
Whether to allow or deny traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleAction(java.lang.String ruleAction)
Whether to allow or deny traffic that matches the rule.
|
ReplaceNetworkAclEntryRequest |
withRuleNumber(java.lang.Integer ruleNumber)
Rule number of the entry to replace.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getNetworkAclId()
public void setNetworkAclId(java.lang.String networkAclId)
networkAclId - ID of the ACL where the entry will be replaced.public ReplaceNetworkAclEntryRequest withNetworkAclId(java.lang.String networkAclId)
Returns a reference to this object so that method calls can be chained together.
networkAclId - ID of the ACL where the entry will be replaced.public java.lang.Integer getRuleNumber()
public void setRuleNumber(java.lang.Integer ruleNumber)
ruleNumber - Rule number of the entry to replace.public ReplaceNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
Returns a reference to this object so that method calls can be chained together.
ruleNumber - Rule number of the entry to replace.public java.lang.String getProtocol()
tcp,
udp, icmp or an IP protocol number.tcp,
udp, icmp or an IP protocol number.public void setProtocol(java.lang.String protocol)
tcp,
udp, icmp or an IP protocol number.protocol - IP protocol the rule applies to. Valid Values: tcp,
udp, icmp or an IP protocol number.public ReplaceNetworkAclEntryRequest withProtocol(java.lang.String protocol)
tcp,
udp, icmp or an IP protocol number.
Returns a reference to this object so that method calls can be chained together.
protocol - IP protocol the rule applies to. Valid Values: tcp,
udp, icmp or an IP protocol number.public java.lang.String getRuleAction()
Constraints:
Allowed Values: allow, deny
RuleActionpublic void setRuleAction(java.lang.String ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction - Whether to allow or deny traffic that matches the rule.RuleActionpublic ReplaceNetworkAclEntryRequest withRuleAction(java.lang.String ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction - Whether to allow or deny traffic that matches the rule.RuleActionpublic void setRuleAction(RuleAction ruleAction)
Constraints:
Allowed Values: allow, deny
ruleAction - Whether to allow or deny traffic that matches the rule.RuleActionpublic ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: allow, deny
ruleAction - Whether to allow or deny traffic that matches the rule.RuleActionpublic java.lang.Boolean isEgress()
true) or ingress traffic (false).true) or ingress traffic (false).public void setEgress(java.lang.Boolean egress)
true) or ingress traffic (false).egress - Whether this rule applies to egress traffic from the subnet
(true) or ingress traffic (false).public ReplaceNetworkAclEntryRequest withEgress(java.lang.Boolean egress)
true) or ingress traffic (false).
Returns a reference to this object so that method calls can be chained together.
egress - Whether this rule applies to egress traffic from the subnet
(true) or ingress traffic (false).public java.lang.Boolean getEgress()
true) or ingress traffic (false).true) or ingress traffic (false).public java.lang.String getCidrBlock()
172.16.0.0/24).172.16.0.0/24).public void setCidrBlock(java.lang.String cidrBlock)
172.16.0.0/24).cidrBlock - The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24).public ReplaceNetworkAclEntryRequest withCidrBlock(java.lang.String cidrBlock)
172.16.0.0/24).
Returns a reference to this object so that method calls can be chained together.
cidrBlock - The CIDR range to allow or deny, in CIDR notation (e.g.,
172.16.0.0/24).public IcmpTypeCode getIcmpTypeCode()
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
icmpTypeCode - ICMP values.public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
Returns a reference to this object so that method calls can be chained together.
icmpTypeCode - ICMP values.public PortRange getPortRange()
public void setPortRange(PortRange portRange)
portRange - Port ranges.public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
Returns a reference to this object so that method calls can be chained together.
portRange - Port ranges.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object