@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.059Z") @Stability(value=Stable) public class CfnDevice extends CfnResource implements IInspectable
Specifies a device.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmanager.*;
CfnDevice cfnDevice = CfnDevice.Builder.create(this, "MyCfnDevice")
.globalNetworkId("globalNetworkId")
// the properties below are optional
.description("description")
.location(LocationProperty.builder()
.address("address")
.latitude("latitude")
.longitude("longitude")
.build())
.model("model")
.serialNumber("serialNumber")
.siteId("siteId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.vendor("vendor")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDevice.Builder
A fluent builder for
CfnDevice. |
static interface |
CfnDevice.LocationProperty
Describes a location.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDevice(software.constructs.Construct scope,
String id,
CfnDeviceProps props)
Create a new `AWS::NetworkManager::Device`.
|
protected |
CfnDevice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDevice(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDeviceArn()
The ARN of the device.
|
String |
getAttrDeviceId()
The ID of the device.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the device.
|
String |
getGlobalNetworkId()
The ID of the global network.
|
Object |
getLocation()
The site location.
|
String |
getModel()
The model of the device.
|
String |
getSerialNumber()
The serial number of the device.
|
String |
getSiteId()
The site ID.
|
TagManager |
getTags()
The tags for the device.
|
String |
getType()
The device type.
|
String |
getVendor()
The vendor of the device.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description of the device.
|
void |
setGlobalNetworkId(String value)
The ID of the global network.
|
void |
setLocation(CfnDevice.LocationProperty value)
The site location.
|
void |
setLocation(IResolvable value)
The site location.
|
void |
setModel(String value)
The model of the device.
|
void |
setSerialNumber(String value)
The serial number of the device.
|
void |
setSiteId(String value)
The site ID.
|
void |
setType(String value)
The device type.
|
void |
setVendor(String value)
The vendor of the device.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDevice(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDevice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDevice(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDeviceProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDeviceArn()
For example, arn:aws:networkmanager::123456789012:device/global-network-01231231231231231/device-07f6fd08867abc123 .
@Stability(value=Stable) @NotNull public String getAttrDeviceId()
For example, device-07f6fd08867abc123 .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getGlobalNetworkId()
@Stability(value=Stable)
public void setGlobalNetworkId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
Constraints: Maximum length of 256 characters.
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Constraints: Maximum length of 256 characters.
@Stability(value=Stable) @Nullable public Object getLocation()
@Stability(value=Stable)
public void setLocation(@Nullable
CfnDevice.LocationProperty value)
@Stability(value=Stable)
public void setLocation(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getModel()
Constraints: Maximum length of 128 characters.
@Stability(value=Stable)
public void setModel(@Nullable
String value)
Constraints: Maximum length of 128 characters.
@Stability(value=Stable) @Nullable public String getSerialNumber()
Constraints: Maximum length of 128 characters.
@Stability(value=Stable)
public void setSerialNumber(@Nullable
String value)
Constraints: Maximum length of 128 characters.
@Stability(value=Stable) @Nullable public String getSiteId()
@Stability(value=Stable)
public void setSiteId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getType()
@Stability(value=Stable)
public void setType(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getVendor()
Constraints: Maximum length of 128 characters.
@Stability(value=Stable)
public void setVendor(@Nullable
String value)
Constraints: Maximum length of 128 characters.
Copyright © 2022. All rights reserved.