Class BlockPublicAccessStates
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.BlockPublicAccessStates
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BlockPublicAccessStates.Builder,BlockPublicAccessStates>
@Generated("software.amazon.awssdk:codegen") public final class BlockPublicAccessStates extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockPublicAccessStates.Builder,BlockPublicAccessStates>
The state of VPC Block Public Access (BPA).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBlockPublicAccessStates.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockPublicAccessStates.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BlockPublicAccessModeinternetGatewayBlockMode()The mode of VPC BPA.StringinternetGatewayBlockModeAsString()The mode of VPC BPA.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BlockPublicAccessStates.Builder>serializableBuilderClass()BlockPublicAccessStates.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
internetGatewayBlockMode
public final BlockPublicAccessMode internetGatewayBlockMode()
The mode of VPC BPA.
-
bidirectional-access-allowed: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region. -
bidirectional-access-blocked: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets). -
ingress-access-blocked: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.
If the service returns an enum value that is not available in the current SDK version,
internetGatewayBlockModewill returnBlockPublicAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominternetGatewayBlockModeAsString().- Returns:
- The mode of VPC BPA.
-
bidirectional-access-allowed: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region. -
bidirectional-access-blocked: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets). -
ingress-access-blocked: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.
-
- See Also:
BlockPublicAccessMode
-
-
internetGatewayBlockModeAsString
public final String internetGatewayBlockModeAsString()
The mode of VPC BPA.
-
bidirectional-access-allowed: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region. -
bidirectional-access-blocked: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets). -
ingress-access-blocked: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.
If the service returns an enum value that is not available in the current SDK version,
internetGatewayBlockModewill returnBlockPublicAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominternetGatewayBlockModeAsString().- Returns:
- The mode of VPC BPA.
-
bidirectional-access-allowed: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region. -
bidirectional-access-blocked: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets). -
ingress-access-blocked: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.
-
- See Also:
BlockPublicAccessMode
-
-
toBuilder
public BlockPublicAccessStates.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BlockPublicAccessStates.Builder,BlockPublicAccessStates>
-
builder
public static BlockPublicAccessStates.Builder builder()
-
serializableBuilderClass
public static Class<? extends BlockPublicAccessStates.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
-
-