Class SecurityGroupVpcAssociation
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.SecurityGroupVpcAssociation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SecurityGroupVpcAssociation.Builder,SecurityGroupVpcAssociation>
@Generated("software.amazon.awssdk:codegen") public final class SecurityGroupVpcAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SecurityGroupVpcAssociation.Builder,SecurityGroupVpcAssociation>
A security group association with a VPC that you made with AssociateSecurityGroupVpc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSecurityGroupVpcAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityGroupVpcAssociation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupId()The association's security group ID.StringgroupOwnerId()The Amazon Web Services account ID of the owner of the security group.inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SecurityGroupVpcAssociation.Builder>serializableBuilderClass()SecurityGroupVpcAssociationStatestate()The association's state.StringstateAsString()The association's state.StringstateReason()The association's state reason.SecurityGroupVpcAssociation.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcId()The association's VPC ID.StringvpcOwnerId()The Amazon Web Services account ID of the owner of the VPC.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
groupId
public final String groupId()
The association's security group ID.
- Returns:
- The association's security group ID.
-
vpcId
public final String vpcId()
The association's VPC ID.
- Returns:
- The association's VPC ID.
-
vpcOwnerId
public final String vpcOwnerId()
The Amazon Web Services account ID of the owner of the VPC.
- Returns:
- The Amazon Web Services account ID of the owner of the VPC.
-
state
public final SecurityGroupVpcAssociationState state()
The association's state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSecurityGroupVpcAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The association's state.
- See Also:
SecurityGroupVpcAssociationState
-
stateAsString
public final String stateAsString()
The association's state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSecurityGroupVpcAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The association's state.
- See Also:
SecurityGroupVpcAssociationState
-
stateReason
public final String stateReason()
The association's state reason.
- Returns:
- The association's state reason.
-
groupOwnerId
public final String groupOwnerId()
The Amazon Web Services account ID of the owner of the security group.
- Returns:
- The Amazon Web Services account ID of the owner of the security group.
-
toBuilder
public SecurityGroupVpcAssociation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SecurityGroupVpcAssociation.Builder,SecurityGroupVpcAssociation>
-
builder
public static SecurityGroupVpcAssociation.Builder builder()
-
serializableBuilderClass
public static Class<? extends SecurityGroupVpcAssociation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-