public class SecurityGroup
extends java.lang.Object
implements java.io.Serializable
Describes a security group
Constructor and Description |
---|
SecurityGroup() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description of the security group.
|
java.lang.String |
getGroupId()
The ID of the security group.
|
java.lang.String |
getGroupName()
The name of the security group.
|
java.util.List<IpPermission> |
getIpPermissions()
One or more inbound rules associated with the security group.
|
java.util.List<IpPermission> |
getIpPermissionsEgress()
[EC2-VPC] One or more outbound rules associated with the security
group.
|
java.lang.String |
getOwnerId()
The AWS account ID of the owner of the security group.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the security group.
|
java.lang.String |
getVpcId()
[EC2-VPC] The ID of the VPC for the security group.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description of the security group.
|
void |
setGroupId(java.lang.String groupId)
The ID of the security group.
|
void |
setGroupName(java.lang.String groupName)
The name of the security group.
|
void |
setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
One or more inbound rules associated with the security group.
|
void |
setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security
group.
|
void |
setOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the security group.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the security group.
|
void |
setVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC for the security group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SecurityGroup |
withDescription(java.lang.String description)
A description of the security group.
|
SecurityGroup |
withGroupId(java.lang.String groupId)
The ID of the security group.
|
SecurityGroup |
withGroupName(java.lang.String groupName)
The name of the security group.
|
SecurityGroup |
withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
One or more inbound rules associated with the security group.
|
SecurityGroup |
withIpPermissions(IpPermission... ipPermissions)
One or more inbound rules associated with the security group.
|
SecurityGroup |
withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security
group.
|
SecurityGroup |
withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security
group.
|
SecurityGroup |
withOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the security group.
|
SecurityGroup |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the security group.
|
SecurityGroup |
withTags(Tag... tags)
Any tags assigned to the security group.
|
SecurityGroup |
withVpcId(java.lang.String vpcId)
[EC2-VPC] The ID of the VPC for the security group.
|
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId
- The AWS account ID of the owner of the security group.public SecurityGroup withOwnerId(java.lang.String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The AWS account ID of the owner of the security group.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- The name of the security group.public SecurityGroup withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the security group.public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- The ID of the security group.public SecurityGroup withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- The ID of the security group.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description of the security group.public SecurityGroup withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description of the security group.public java.util.List<IpPermission> getIpPermissions()
public void setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
ipPermissions
- One or more inbound rules associated with the security group.public SecurityGroup withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- One or more inbound rules associated with the security group.public SecurityGroup withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- One or more inbound rules associated with the security group.public java.util.List<IpPermission> getIpPermissionsEgress()
public void setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
ipPermissionsEgress
- [EC2-VPC] One or more outbound rules associated with the security
group.public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
Returns a reference to this object so that method calls can be chained together.
ipPermissionsEgress
- [EC2-VPC] One or more outbound rules associated with the security
group.public SecurityGroup withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
Returns a reference to this object so that method calls can be chained together.
ipPermissionsEgress
- [EC2-VPC] One or more outbound rules associated with the security
group.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- [EC2-VPC] The ID of the VPC for the security group.public SecurityGroup withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- [EC2-VPC] The ID of the VPC for the security group.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the security group.public SecurityGroup withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the security group.public SecurityGroup withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the security group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.