com.amazonaws.services.ec2.model
Class ReplaceNetworkAclEntryRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ReplaceNetworkAclEntryRequest
All Implemented Interfaces:
DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>, java.io.Serializable

public class ReplaceNetworkAclEntryRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>

Container for the parameters to the ReplaceNetworkAclEntry operation.

Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.replaceNetworkAclEntry(ReplaceNetworkAclEntryRequest), Serialized Form

Constructor Summary
ReplaceNetworkAclEntryRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCidrBlock()
          The network range to allow or deny, in CIDR notation.
 Request<ReplaceNetworkAclEntryRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.Boolean getEgress()
          Indicates whether to replace the egress rule.
 IcmpTypeCode getIcmpTypeCode()
          ICMP protocol: The ICMP type and code.
 java.lang.String getNetworkAclId()
          The ID of the ACL.
 PortRange getPortRange()
          TCP or UDP protocols: The range of ports the rule applies to.
 java.lang.String getProtocol()
          The IP protocol.
 java.lang.String getRuleAction()
          Indicates whether to allow or deny the traffic that matches the rule.
 java.lang.Integer getRuleNumber()
          The rule number of the entry to replace.
 int hashCode()
           
 java.lang.Boolean isEgress()
          Indicates whether to replace the egress rule.
 void setCidrBlock(java.lang.String cidrBlock)
          The network range to allow or deny, in CIDR notation.
 void setEgress(java.lang.Boolean egress)
          Indicates whether to replace the egress rule.
 void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
          ICMP protocol: The ICMP type and code.
 void setNetworkAclId(java.lang.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(java.lang.String protocol)
          The IP protocol.
 void setRuleAction(RuleAction ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 void setRuleAction(java.lang.String ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 void setRuleNumber(java.lang.Integer ruleNumber)
          The 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 network range to allow or deny, in CIDR notation.
 ReplaceNetworkAclEntryRequest withEgress(java.lang.Boolean egress)
          Indicates whether to replace the egress rule.
 ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
          ICMP protocol: The ICMP type and code.
 ReplaceNetworkAclEntryRequest withNetworkAclId(java.lang.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(java.lang.String protocol)
          The IP protocol.
 ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 ReplaceNetworkAclEntryRequest withRuleAction(java.lang.String ruleAction)
          Indicates whether to allow or deny the traffic that matches the rule.
 ReplaceNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
          The rule number of the entry to replace.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplaceNetworkAclEntryRequest

public ReplaceNetworkAclEntryRequest()
Method Detail

getNetworkAclId

public java.lang.String getNetworkAclId()
The ID of the ACL.

Returns:
The ID of the ACL.

setNetworkAclId

public void setNetworkAclId(java.lang.String networkAclId)
The ID of the ACL.

Parameters:
networkAclId - The ID of the ACL.

withNetworkAclId

public ReplaceNetworkAclEntryRequest withNetworkAclId(java.lang.String networkAclId)
The ID of the ACL.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkAclId - The ID of the ACL.
Returns:
A reference to this updated object so that method calls can be chained together.

getRuleNumber

public java.lang.Integer getRuleNumber()
The rule number of the entry to replace.

Returns:
The rule number of the entry to replace.

setRuleNumber

public void setRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.

Parameters:
ruleNumber - The rule number of the entry to replace.

withRuleNumber

public ReplaceNetworkAclEntryRequest withRuleNumber(java.lang.Integer ruleNumber)
The rule number of the entry to replace.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ruleNumber - The rule number of the entry to replace.
Returns:
A reference to this updated object so that method calls can be chained together.

getProtocol

public java.lang.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.

setProtocol

public void setProtocol(java.lang.String protocol)
The IP protocol. You can specify all or -1 to mean all protocols.

Parameters:
protocol - The IP protocol. You can specify all or -1 to mean all protocols.

withProtocol

public ReplaceNetworkAclEntryRequest withProtocol(java.lang.String protocol)
The IP protocol. You can specify all or -1 to mean all protocols.

Returns a reference to this object so that method calls can be chained together.

Parameters:
protocol - The IP protocol. You can specify all or -1 to mean all protocols.
Returns:
A reference to this updated object so that method calls can be chained together.

getRuleAction

public java.lang.String getRuleAction()
Indicates whether to allow or deny the traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

Returns:
Indicates whether to allow or deny the traffic that matches the rule.
See Also:
RuleAction

setRuleAction

public void setRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
See Also:
RuleAction

withRuleAction

public ReplaceNetworkAclEntryRequest withRuleAction(java.lang.String ruleAction)
Indicates whether to allow or deny the traffic that matches the rule.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: allow, deny

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: allow, deny

Parameters:
ruleAction - Indicates whether to allow or deny the traffic that matches the rule.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RuleAction

isEgress

public java.lang.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.


setEgress

public void setEgress(java.lang.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.


withEgress

public ReplaceNetworkAclEntryRequest withEgress(java.lang.Boolean egress)
Indicates whether to replace the egress rule.

Default: If no value is specified, we replace the ingress rule.

Returns a reference to this object so that method calls can be chained together.

Parameters:
egress - Indicates whether to replace the egress rule.

Default: If no value is specified, we replace the ingress rule.

Returns:
A reference to this updated object so that method calls can be chained together.

getEgress

public java.lang.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.


getCidrBlock

public java.lang.String getCidrBlock()
The network range to allow or deny, in CIDR notation.

Returns:
The network range to allow or deny, in CIDR notation.

setCidrBlock

public void setCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.

Parameters:
cidrBlock - The network range to allow or deny, in CIDR notation.

withCidrBlock

public ReplaceNetworkAclEntryRequest withCidrBlock(java.lang.String cidrBlock)
The network range to allow or deny, in CIDR notation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrBlock - The network range to allow or deny, in CIDR notation.
Returns:
A reference to this updated object so that method calls can be chained together.

getIcmpTypeCode

public IcmpTypeCode getIcmpTypeCode()
ICMP protocol: The ICMP type and code.

Returns:
ICMP protocol: The ICMP type and code.

setIcmpTypeCode

public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.

Parameters:
icmpTypeCode - ICMP protocol: The ICMP type and code.

withIcmpTypeCode

public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP protocol: The ICMP type and code.

Returns a reference to this object so that method calls can be chained together.

Parameters:
icmpTypeCode - ICMP protocol: The ICMP type and code.
Returns:
A reference to this updated object so that method calls can be chained together.

getPortRange

public PortRange getPortRange()
TCP or UDP protocols: The range of ports the rule applies to.

Returns:
TCP or UDP protocols: The range of ports the rule applies to.

setPortRange

public void setPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.

Parameters:
portRange - TCP or UDP protocols: The range of ports the rule applies to.

withPortRange

public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
TCP or UDP protocols: The range of ports the rule applies to.

Returns a reference to this object so that method calls can be chained together.

Parameters:
portRange - TCP or UDP protocols: The range of ports the rule applies to.
Returns:
A reference to this updated 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 interface DryRunSupportedRequest<ReplaceNetworkAclEntryRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.