Class ReplaceNetworkAclEntryRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ReplaceNetworkAclEntryRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
,Serializable
,Cloneable
public class ReplaceNetworkAclEntryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
Contains the parameters for ReplaceNetworkAclEntry.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ReplaceNetworkAclEntryRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceNetworkAclEntryRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCidrBlock()
The network range to allow or deny, in CIDR notation.Request<ReplaceNetworkAclEntryRequest>
getDryRunRequest()
This method is intended for internal use only.Boolean
getEgress()
Indicates whether to replace the egress rule.IcmpTypeCode
getIcmpTypeCode()
ICMP protocol: The ICMP type and code.String
getNetworkAclId()
The ID of the ACL.PortRange
getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.String
getProtocol()
The IP protocol.String
getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.Integer
getRuleNumber()
The rule number of the entry to replace.int
hashCode()
Boolean
isEgress()
Indicates whether to replace the egress rule.void
setCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.void
setEgress(Boolean egress)
Indicates whether to replace the egress rule.void
setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.void
setNetworkAclId(String networkAclId)
The ID of the ACL.void
setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.void
setProtocol(String protocol)
The IP protocol.void
setRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.void
setRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.void
setRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.String
toString()
Returns a string representation of this object; useful for testing and debugging.ReplaceNetworkAclEntryRequest
withCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.ReplaceNetworkAclEntryRequest
withEgress(Boolean egress)
Indicates whether to replace the egress rule.ReplaceNetworkAclEntryRequest
withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.ReplaceNetworkAclEntryRequest
withNetworkAclId(String networkAclId)
The ID of the ACL.ReplaceNetworkAclEntryRequest
withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.ReplaceNetworkAclEntryRequest
withProtocol(String protocol)
The IP protocol.ReplaceNetworkAclEntryRequest
withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.ReplaceNetworkAclEntryRequest
withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.ReplaceNetworkAclEntryRequest
withRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setNetworkAclId
public void setNetworkAclId(String networkAclId)
The ID of the ACL.
- Parameters:
networkAclId
- The ID of the ACL.
-
getNetworkAclId
public String getNetworkAclId()
The ID of the ACL.
- Returns:
- The ID of the ACL.
-
withNetworkAclId
public ReplaceNetworkAclEntryRequest withNetworkAclId(String networkAclId)
The ID of the ACL.
- Parameters:
networkAclId
- The ID of the ACL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleNumber
public void setRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.
- Parameters:
ruleNumber
- The rule number of the entry to replace.
-
getRuleNumber
public Integer getRuleNumber()
The rule number of the entry to replace.
- Returns:
- The rule number of the entry to replace.
-
withRuleNumber
public ReplaceNetworkAclEntryRequest withRuleNumber(Integer ruleNumber)
The rule number of the entry to replace.
- Parameters:
ruleNumber
- The rule number of the entry to replace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtocol
public void setProtocol(String protocol)
The IP protocol. You can specify
all
or-1
to mean all protocols.- Parameters:
protocol
- The IP protocol. You can specifyall
or-1
to mean all protocols.
-
getProtocol
public String getProtocol()
The IP protocol. You can specify
all
or-1
to mean all protocols.- Returns:
- The IP protocol. You can specify
all
or-1
to mean all protocols.
-
withProtocol
public ReplaceNetworkAclEntryRequest withProtocol(String protocol)
The IP protocol. You can specify
all
or-1
to mean all protocols.- Parameters:
protocol
- The IP protocol. You can specifyall
or-1
to mean all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleAction
public void setRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
RuleAction
-
getRuleAction
public String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.
- Returns:
- Indicates whether to allow or deny the traffic that matches the rule.
- See Also:
RuleAction
-
withRuleAction
public ReplaceNetworkAclEntryRequest withRuleAction(String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleAction
-
setRuleAction
public void setRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- See Also:
RuleAction
-
withRuleAction
public ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.
- Parameters:
ruleAction
- Indicates whether to allow or deny the traffic that matches the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RuleAction
-
setEgress
public void setEgress(Boolean egress)
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Parameters:
egress
- Indicates whether to replace the egress rule.Default: If no value is specified, we replace the ingress rule.
-
getEgress
public Boolean getEgress()
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Returns:
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
-
withEgress
public ReplaceNetworkAclEntryRequest withEgress(Boolean egress)
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Parameters:
egress
- Indicates whether to replace the egress rule.Default: If no value is specified, we replace the ingress rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEgress
public Boolean isEgress()
Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
- Returns:
- Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
-
setCidrBlock
public void setCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.
-
getCidrBlock
public String getCidrBlock()
The network range to allow or deny, in CIDR notation.
- Returns:
- The network range to allow or deny, in CIDR notation.
-
withCidrBlock
public ReplaceNetworkAclEntryRequest withCidrBlock(String cidrBlock)
The network range to allow or deny, in CIDR notation.
- Parameters:
cidrBlock
- The network range to allow or deny, in CIDR notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIcmpTypeCode
public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
-
getIcmpTypeCode
public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Returns:
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
-
withIcmpTypeCode
public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
- Parameters:
icmpTypeCode
- ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPortRange
public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
-
getPortRange
public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Returns:
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
-
withPortRange
public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
- Parameters:
portRange
- TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<ReplaceNetworkAclEntryRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ReplaceNetworkAclEntryRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReplaceNetworkAclEntryRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-