Class CfnSite.AddressProperty.Builder
java.lang.Object
software.amazon.awscdk.services.outposts.CfnSite.AddressProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSite.AddressProperty>
- Enclosing interface:
CfnSite.AddressProperty
@Stability(Stable)
public static final class CfnSite.AddressProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSite.AddressProperty>
A builder for
CfnSite.AddressProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressLine1(String addressLine1) Sets the value ofCfnSite.AddressProperty.getAddressLine1()addressLine2(String addressLine2) Sets the value ofCfnSite.AddressProperty.getAddressLine2()addressLine3(String addressLine3) Sets the value ofCfnSite.AddressProperty.getAddressLine3()build()Builds the configured instance.Sets the value ofCfnSite.AddressProperty.getCity()contactName(String contactName) Sets the value ofCfnSite.AddressProperty.getContactName()contactPhoneNumber(String contactPhoneNumber) Sets the value ofCfnSite.AddressProperty.getContactPhoneNumber()countryCode(String countryCode) Sets the value ofCfnSite.AddressProperty.getCountryCode()districtOrCounty(String districtOrCounty) Sets the value ofCfnSite.AddressProperty.getDistrictOrCounty()municipality(String municipality) Sets the value ofCfnSite.AddressProperty.getMunicipality()postalCode(String postalCode) Sets the value ofCfnSite.AddressProperty.getPostalCode()stateOrRegion(String stateOrRegion) Sets the value ofCfnSite.AddressProperty.getStateOrRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressLine1
Sets the value ofCfnSite.AddressProperty.getAddressLine1()- Parameters:
addressLine1- the value to be set. This parameter is required.- Returns:
this
-
city
Sets the value ofCfnSite.AddressProperty.getCity()- Parameters:
city- the value to be set. This parameter is required.- Returns:
this
-
contactName
Sets the value ofCfnSite.AddressProperty.getContactName()- Parameters:
contactName- the value to be set. This parameter is required.- Returns:
this
-
contactPhoneNumber
@Stability(Stable) public CfnSite.AddressProperty.Builder contactPhoneNumber(String contactPhoneNumber) Sets the value ofCfnSite.AddressProperty.getContactPhoneNumber()- Parameters:
contactPhoneNumber- the value to be set. This parameter is required.- Returns:
this
-
countryCode
Sets the value ofCfnSite.AddressProperty.getCountryCode()- Parameters:
countryCode- the value to be set. This parameter is required.- Returns:
this
-
postalCode
Sets the value ofCfnSite.AddressProperty.getPostalCode()- Parameters:
postalCode- the value to be set. This parameter is required.- Returns:
this
-
stateOrRegion
Sets the value ofCfnSite.AddressProperty.getStateOrRegion()- Parameters:
stateOrRegion- the value to be set. This parameter is required.- Returns:
this
-
addressLine2
Sets the value ofCfnSite.AddressProperty.getAddressLine2()- Parameters:
addressLine2- the value to be set.- Returns:
this
-
addressLine3
Sets the value ofCfnSite.AddressProperty.getAddressLine3()- Parameters:
addressLine3- the value to be set.- Returns:
this
-
districtOrCounty
Sets the value ofCfnSite.AddressProperty.getDistrictOrCounty()- Parameters:
districtOrCounty- the value to be set.- Returns:
this
-
municipality
Sets the value ofCfnSite.AddressProperty.getMunicipality()- Parameters:
municipality- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSite.AddressProperty>- Returns:
- a new instance of
CfnSite.AddressProperty - Throws:
NullPointerException- if any required attribute was not provided
-