Did this page help you?

   Yes   No   Tell us about it...

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:
Serializable

public class ReplaceNetworkAclEntryRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

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

Constructor Summary
ReplaceNetworkAclEntryRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCidrBlock()
          The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).
 Boolean getEgress()
          Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).
 IcmpTypeCode getIcmpTypeCode()
          ICMP values.
 String getNetworkAclId()
          ID of the ACL where the entry will be replaced.
 PortRange getPortRange()
          Port ranges.
 String getProtocol()
          IP protocol the rule applies to.
 String getRuleAction()
          Whether to allow or deny traffic that matches the rule.
 Integer getRuleNumber()
          Rule number of the entry to replace.
 int hashCode()
           
 Boolean isEgress()
          Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).
 void setCidrBlock(String cidrBlock)
          The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).
 void setEgress(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(String networkAclId)
          ID of the ACL where the entry will be replaced.
 void setPortRange(PortRange portRange)
          Port ranges.
 void setProtocol(String protocol)
          IP protocol the rule applies to.
 void setRuleAction(RuleAction ruleAction)
          Whether to allow or deny traffic that matches the rule.
 void setRuleAction(String ruleAction)
          Whether to allow or deny traffic that matches the rule.
 void setRuleNumber(Integer ruleNumber)
          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 CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).
 ReplaceNetworkAclEntryRequest withEgress(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(String networkAclId)
          ID of the ACL where the entry will be replaced.
 ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
          Port ranges.
 ReplaceNetworkAclEntryRequest withProtocol(String protocol)
          IP protocol the rule applies to.
 ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
          Whether to allow or deny traffic that matches the rule.
 ReplaceNetworkAclEntryRequest withRuleAction(String ruleAction)
          Whether to allow or deny traffic that matches the rule.
 ReplaceNetworkAclEntryRequest withRuleNumber(Integer ruleNumber)
          Rule number of the entry to replace.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplaceNetworkAclEntryRequest

public ReplaceNetworkAclEntryRequest()
Method Detail

getNetworkAclId

public String getNetworkAclId()
ID of the ACL where the entry will be replaced.

Returns:
ID of the ACL where the entry will be replaced.

setNetworkAclId

public void setNetworkAclId(String networkAclId)
ID of the ACL where the entry will be replaced.

Parameters:
networkAclId - ID of the ACL where the entry will be replaced.

withNetworkAclId

public ReplaceNetworkAclEntryRequest withNetworkAclId(String networkAclId)
ID of the ACL where the entry will be replaced.

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

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

getRuleNumber

public Integer getRuleNumber()
Rule number of the entry to replace.

Returns:
Rule number of the entry to replace.

setRuleNumber

public void setRuleNumber(Integer ruleNumber)
Rule number of the entry to replace.

Parameters:
ruleNumber - Rule number of the entry to replace.

withRuleNumber

public ReplaceNetworkAclEntryRequest withRuleNumber(Integer ruleNumber)
Rule number of the entry to replace.

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

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

getProtocol

public String getProtocol()
IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.

Returns:
IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.

setProtocol

public void setProtocol(String protocol)
IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.

Parameters:
protocol - IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.

withProtocol

public ReplaceNetworkAclEntryRequest withProtocol(String protocol)
IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.

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

Parameters:
protocol - IP protocol the rule applies to. Valid Values: tcp, udp, icmp or an IP protocol number.
Returns:
A reference to this updated object so that method calls can be chained together.

getRuleAction

public String getRuleAction()
Whether to allow or deny traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

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

setRuleAction

public void setRuleAction(String ruleAction)
Whether to allow or deny traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

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

withRuleAction

public ReplaceNetworkAclEntryRequest withRuleAction(String ruleAction)
Whether to allow or deny 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 - Whether to allow or deny 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)
Whether to allow or deny traffic that matches the rule.

Constraints:
Allowed Values: allow, deny

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

withRuleAction

public ReplaceNetworkAclEntryRequest withRuleAction(RuleAction ruleAction)
Whether to allow or deny 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 - Whether to allow or deny 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 Boolean isEgress()
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

Returns:
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

setEgress

public void setEgress(Boolean egress)
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

Parameters:
egress - Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

withEgress

public ReplaceNetworkAclEntryRequest withEgress(Boolean egress)
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

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

Parameters:
egress - Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).
Returns:
A reference to this updated object so that method calls can be chained together.

getEgress

public Boolean getEgress()
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

Returns:
Whether this rule applies to egress traffic from the subnet (true) or ingress traffic (false).

getCidrBlock

public String getCidrBlock()
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).

Returns:
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).

setCidrBlock

public void setCidrBlock(String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).

Parameters:
cidrBlock - The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).

withCidrBlock

public ReplaceNetworkAclEntryRequest withCidrBlock(String cidrBlock)
The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).

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

Parameters:
cidrBlock - The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).
Returns:
A reference to this updated object so that method calls can be chained together.

getIcmpTypeCode

public IcmpTypeCode getIcmpTypeCode()
ICMP values.

Returns:
ICMP values.

setIcmpTypeCode

public void setIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values.

Parameters:
icmpTypeCode - ICMP values.

withIcmpTypeCode

public ReplaceNetworkAclEntryRequest withIcmpTypeCode(IcmpTypeCode icmpTypeCode)
ICMP values.

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

Parameters:
icmpTypeCode - ICMP values.
Returns:
A reference to this updated object so that method calls can be chained together.

getPortRange

public PortRange getPortRange()
Port ranges.

Returns:
Port ranges.

setPortRange

public void setPortRange(PortRange portRange)
Port ranges.

Parameters:
portRange - Port ranges.

withPortRange

public ReplaceNetworkAclEntryRequest withPortRange(PortRange portRange)
Port ranges.

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

Parameters:
portRange - Port ranges.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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