@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroupReference extends Object implements Serializable, Cloneable
Describes a VPC with a security group that references your security group.
Constructor and Description |
---|
SecurityGroupReference() |
Modifier and Type | Method and Description |
---|---|
SecurityGroupReference |
clone() |
boolean |
equals(Object obj) |
String |
getGroupId()
The ID of your security group.
|
String |
getReferencingVpcId()
The ID of the VPC with the referencing security group.
|
String |
getTransitGatewayId()
The ID of the transit gateway (if applicable).
|
String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection (if applicable).
|
int |
hashCode() |
void |
setGroupId(String groupId)
The ID of your security group.
|
void |
setReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
|
void |
setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway (if applicable).
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
|
String |
toString()
Returns a string representation of this object.
|
SecurityGroupReference |
withGroupId(String groupId)
The ID of your security group.
|
SecurityGroupReference |
withReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
|
SecurityGroupReference |
withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway (if applicable).
|
SecurityGroupReference |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
|
public void setGroupId(String groupId)
The ID of your security group.
groupId
- The ID of your security group.public String getGroupId()
The ID of your security group.
public SecurityGroupReference withGroupId(String groupId)
The ID of your security group.
groupId
- The ID of your security group.public void setReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
referencingVpcId
- The ID of the VPC with the referencing security group.public String getReferencingVpcId()
The ID of the VPC with the referencing security group.
public SecurityGroupReference withReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
referencingVpcId
- The ID of the VPC with the referencing security group.public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
vpcPeeringConnectionId
- The ID of the VPC peering connection (if applicable). For more information about security group
referencing for peering connections, see Update your security groups to
reference peer security groups in the VPC Peering Guide.public String getVpcPeeringConnectionId()
The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
public SecurityGroupReference withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
vpcPeeringConnectionId
- The ID of the VPC peering connection (if applicable). For more information about security group
referencing for peering connections, see Update your security groups to
reference peer security groups in the VPC Peering Guide.public void setTransitGatewayId(String transitGatewayId)
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
transitGatewayId
- The ID of the transit gateway (if applicable). For more information about security group referencing for
transit gateways, see Create a transit
gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.public String getTransitGatewayId()
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
public SecurityGroupReference withTransitGatewayId(String transitGatewayId)
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
transitGatewayId
- The ID of the transit gateway (if applicable). For more information about security group referencing for
transit gateways, see Create a transit
gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.public String toString()
toString
in class Object
Object.toString()
public SecurityGroupReference clone()