Class CfnDeviceProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnDeviceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceProps>
- Enclosing interface:
- CfnDeviceProps
@Stability(Stable)
public static final class CfnDeviceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeviceProps>
A builder for
CfnDeviceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnDeviceProps.getDescription()globalNetworkId(String globalNetworkId) Sets the value ofCfnDeviceProps.getGlobalNetworkId()location(IResolvable location) Sets the value ofCfnDeviceProps.getLocation()location(CfnDevice.LocationProperty location) Sets the value ofCfnDeviceProps.getLocation()Sets the value ofCfnDeviceProps.getModel()serialNumber(String serialNumber) Sets the value ofCfnDeviceProps.getSerialNumber()Sets the value ofCfnDeviceProps.getSiteId()Sets the value ofCfnDeviceProps.getTags()Sets the value ofCfnDeviceProps.getType()Sets the value ofCfnDeviceProps.getVendor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
globalNetworkId
Sets the value ofCfnDeviceProps.getGlobalNetworkId()- Parameters:
globalNetworkId- The ID of the global network. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDeviceProps.getDescription()- Parameters:
description- A description of the device. Constraints: Maximum length of 256 characters.- Returns:
this
-
location
Sets the value ofCfnDeviceProps.getLocation()- Parameters:
location- The site location.- Returns:
this
-
location
Sets the value ofCfnDeviceProps.getLocation()- Parameters:
location- The site location.- Returns:
this
-
model
Sets the value ofCfnDeviceProps.getModel()- Parameters:
model- The model of the device. Constraints: Maximum length of 128 characters.- Returns:
this
-
serialNumber
Sets the value ofCfnDeviceProps.getSerialNumber()- Parameters:
serialNumber- The serial number of the device. Constraints: Maximum length of 128 characters.- Returns:
this
-
siteId
Sets the value ofCfnDeviceProps.getSiteId()- Parameters:
siteId- The site ID.- Returns:
this
-
tags
Sets the value ofCfnDeviceProps.getTags()- Parameters:
tags- The tags for the device.- Returns:
this
-
type
Sets the value ofCfnDeviceProps.getType()- Parameters:
type- The device type.- Returns:
this
-
vendor
Sets the value ofCfnDeviceProps.getVendor()- Parameters:
vendor- The vendor of the device. Constraints: Maximum length of 128 characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeviceProps>- Returns:
- a new instance of
CfnDeviceProps - Throws:
NullPointerException- if any required attribute was not provided
-