@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnalysisSecurityGroupRule extends Object implements Serializable, Cloneable
Describes a security group rule.
| Constructor and Description |
|---|
AnalysisSecurityGroupRule() |
| Modifier and Type | Method and Description |
|---|---|
AnalysisSecurityGroupRule |
clone() |
boolean |
equals(Object obj) |
String |
getCidr()
The IPv4 address range, in CIDR notation.
|
String |
getDirection()
The direction.
|
PortRange |
getPortRange()
The port range.
|
String |
getPrefixListId()
The prefix list ID.
|
String |
getProtocol()
The protocol name.
|
String |
getSecurityGroupId()
The security group ID.
|
int |
hashCode() |
void |
setCidr(String cidr)
The IPv4 address range, in CIDR notation.
|
void |
setDirection(String direction)
The direction.
|
void |
setPortRange(PortRange portRange)
The port range.
|
void |
setPrefixListId(String prefixListId)
The prefix list ID.
|
void |
setProtocol(String protocol)
The protocol name.
|
void |
setSecurityGroupId(String securityGroupId)
The security group ID.
|
String |
toString()
Returns a string representation of this object.
|
AnalysisSecurityGroupRule |
withCidr(String cidr)
The IPv4 address range, in CIDR notation.
|
AnalysisSecurityGroupRule |
withDirection(String direction)
The direction.
|
AnalysisSecurityGroupRule |
withPortRange(PortRange portRange)
The port range.
|
AnalysisSecurityGroupRule |
withPrefixListId(String prefixListId)
The prefix list ID.
|
AnalysisSecurityGroupRule |
withProtocol(String protocol)
The protocol name.
|
AnalysisSecurityGroupRule |
withSecurityGroupId(String securityGroupId)
The security group ID.
|
public void setCidr(String cidr)
The IPv4 address range, in CIDR notation.
cidr - The IPv4 address range, in CIDR notation.public String getCidr()
The IPv4 address range, in CIDR notation.
public AnalysisSecurityGroupRule withCidr(String cidr)
The IPv4 address range, in CIDR notation.
cidr - The IPv4 address range, in CIDR notation.public void setDirection(String direction)
The direction. The following are the possible values:
egress
ingress
direction - The direction. The following are the possible values:
egress
ingress
public String getDirection()
The direction. The following are the possible values:
egress
ingress
egress
ingress
public AnalysisSecurityGroupRule withDirection(String direction)
The direction. The following are the possible values:
egress
ingress
direction - The direction. The following are the possible values:
egress
ingress
public void setSecurityGroupId(String securityGroupId)
The security group ID.
securityGroupId - The security group ID.public String getSecurityGroupId()
The security group ID.
public AnalysisSecurityGroupRule withSecurityGroupId(String securityGroupId)
The security group ID.
securityGroupId - The security group ID.public void setPortRange(PortRange portRange)
The port range.
portRange - The port range.public PortRange getPortRange()
The port range.
public AnalysisSecurityGroupRule withPortRange(PortRange portRange)
The port range.
portRange - The port range.public void setPrefixListId(String prefixListId)
The prefix list ID.
prefixListId - The prefix list ID.public String getPrefixListId()
The prefix list ID.
public AnalysisSecurityGroupRule withPrefixListId(String prefixListId)
The prefix list ID.
prefixListId - The prefix list ID.public void setProtocol(String protocol)
The protocol name.
protocol - The protocol name.public String getProtocol()
The protocol name.
public AnalysisSecurityGroupRule withProtocol(String protocol)
The protocol name.
protocol - The protocol name.public String toString()
toString in class ObjectObject.toString()public AnalysisSecurityGroupRule clone()