Class NetworkOriginConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.accessanalyzer.model.NetworkOriginConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NetworkOriginConfiguration.Builder,NetworkOriginConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class NetworkOriginConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NetworkOriginConfiguration.Builder,NetworkOriginConfiguration>
The proposed
InternetConfigurationorVpcConfigurationto apply to the Amazon S3 access point.VpcConfigurationdoes not apply to multi-region access points. You can make the access point accessible from the internet, or you can specify that all requests made through that access point must originate from a specific virtual private cloud (VPC). You can specify only one type of network configuration. For more information, see Creating access points.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNetworkOriginConfiguration.Builderstatic classNetworkOriginConfiguration.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkOriginConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static NetworkOriginConfigurationfromInternetConfiguration(Consumer<InternetConfiguration.Builder> internetConfiguration)Create an instance of this class withinternetConfiguration()initialized to the given value.static NetworkOriginConfigurationfromInternetConfiguration(InternetConfiguration internetConfiguration)Create an instance of this class withinternetConfiguration()initialized to the given value.static NetworkOriginConfigurationfromVpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration)Create an instance of this class withvpcConfiguration()initialized to the given value.static NetworkOriginConfigurationfromVpcConfiguration(VpcConfiguration vpcConfiguration)Create an instance of this class withvpcConfiguration()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InternetConfigurationinternetConfiguration()The configuration for the Amazon S3 access point or multi-region access point with anInternetorigin.List<SdkField<?>>sdkFields()static Class<? extends NetworkOriginConfiguration.Builder>serializableBuilderClass()NetworkOriginConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.NetworkOriginConfiguration.Typetype()Retrieve an enum value representing which member of this object is populated.VpcConfigurationvpcConfiguration()Returns the value of the VpcConfiguration property for 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
-
vpcConfiguration
public final VpcConfiguration vpcConfiguration()
Returns the value of the VpcConfiguration property for this object.- Returns:
- The value of the VpcConfiguration property for this object.
-
internetConfiguration
public final InternetConfiguration internetConfiguration()
The configuration for the Amazon S3 access point or multi-region access point with an
Internetorigin.- Returns:
- The configuration for the Amazon S3 access point or multi-region access point with an
Internetorigin.
-
toBuilder
public NetworkOriginConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NetworkOriginConfiguration.Builder,NetworkOriginConfiguration>
-
builder
public static NetworkOriginConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends NetworkOriginConfiguration.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.
-
fromVpcConfiguration
public static NetworkOriginConfiguration fromVpcConfiguration(VpcConfiguration vpcConfiguration)
Create an instance of this class withvpcConfiguration()initialized to the given value. Sets the value of the VpcConfiguration property for this object.- Parameters:
vpcConfiguration- The new value for the VpcConfiguration property for this object.
-
fromVpcConfiguration
public static NetworkOriginConfiguration fromVpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration)
Create an instance of this class withvpcConfiguration()initialized to the given value. Sets the value of the VpcConfiguration property for this object.- Parameters:
vpcConfiguration- The new value for the VpcConfiguration property for this object.
-
fromInternetConfiguration
public static NetworkOriginConfiguration fromInternetConfiguration(InternetConfiguration internetConfiguration)
Create an instance of this class withinternetConfiguration()initialized to the given value.The configuration for the Amazon S3 access point or multi-region access point with an
Internetorigin.- Parameters:
internetConfiguration- The configuration for the Amazon S3 access point or multi-region access point with anInternetorigin.
-
fromInternetConfiguration
public static NetworkOriginConfiguration fromInternetConfiguration(Consumer<InternetConfiguration.Builder> internetConfiguration)
Create an instance of this class withinternetConfiguration()initialized to the given value.The configuration for the Amazon S3 access point or multi-region access point with an
Internetorigin.- Parameters:
internetConfiguration- The configuration for the Amazon S3 access point or multi-region access point with anInternetorigin.
-
type
public NetworkOriginConfiguration.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beNetworkOriginConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beNetworkOriginConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-