@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:24.566Z") 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDevice(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrDeviceArn()
The ARN of the device.
|
java.lang.String |
getAttrDeviceId()
The ID of the device.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description of the device.
|
java.lang.String |
getGlobalNetworkId()
The ID of the global network.
|
java.lang.Object |
getLocation()
The site location.
|
java.lang.String |
getModel()
The model of the device.
|
java.lang.String |
getSerialNumber()
The serial number of the device.
|
java.lang.String |
getSiteId()
The site ID.
|
TagManager |
getTags()
The tags for the device.
|
java.lang.String |
getType()
The device type.
|
java.lang.String |
getVendor()
The vendor of the device.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
A description of the device.
|
void |
setGlobalNetworkId(java.lang.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(java.lang.String value)
The model of the device.
|
void |
setSerialNumber(java.lang.String value)
The serial number of the device.
|
void |
setSiteId(java.lang.String value)
The site ID.
|
void |
setType(java.lang.String value)
The device type.
|
void |
setVendor(java.lang.String value)
The vendor of the device.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDevice(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDevice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDevice(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrDeviceArn()
For example, arn:aws:networkmanager::123456789012:device/global-network-01231231231231231/device-07f6fd08867abc123
.
public java.lang.String getAttrDeviceId()
For example, device-07f6fd08867abc123
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getGlobalNetworkId()
public void setGlobalNetworkId(java.lang.String value)
public java.lang.String getDescription()
Constraints: Maximum length of 256 characters.
public void setDescription(java.lang.String value)
Constraints: Maximum length of 256 characters.
public java.lang.Object getLocation()
public void setLocation(IResolvable value)
public void setLocation(CfnDevice.LocationProperty value)
public java.lang.String getModel()
Constraints: Maximum length of 128 characters.
public void setModel(java.lang.String value)
Constraints: Maximum length of 128 characters.
public java.lang.String getSerialNumber()
Constraints: Maximum length of 128 characters.
public void setSerialNumber(java.lang.String value)
Constraints: Maximum length of 128 characters.
public java.lang.String getSiteId()
public void setSiteId(java.lang.String value)
public java.lang.String getType()
public void setType(java.lang.String value)
public java.lang.String getVendor()
Constraints: Maximum length of 128 characters.
public void setVendor(java.lang.String value)
Constraints: Maximum length of 128 characters.