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