Class CfnDiskSnapshot.LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDiskSnapshot.LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDiskSnapshot.LocationProperty>
- Enclosing interface:
CfnDiskSnapshot.LocationProperty
@Stability(Stable)
public static final class CfnDiskSnapshot.LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDiskSnapshot.LocationProperty>
A builder for
CfnDiskSnapshot.LocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnDiskSnapshot.LocationProperty.getAvailabilityZone()build()Builds the configured instance.regionName(String regionName) Sets the value ofCfnDiskSnapshot.LocationProperty.getRegionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnDiskSnapshot.LocationProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnDiskSnapshot.LocationProperty.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone where the disk snapshot was created.- Returns:
this
-
regionName
Sets the value ofCfnDiskSnapshot.LocationProperty.getRegionName()- Parameters:
regionName- The AWS Region where the disk snapshot was created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDiskSnapshot.LocationProperty>- Returns:
- a new instance of
CfnDiskSnapshot.LocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-