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