Interface AssetModelPropertyDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>,SdkBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>,SdkPojo
- Enclosing class:
- AssetModelPropertyDefinition
public static interface AssetModelPropertyDefinition.Builder extends SdkPojo, CopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AssetModelPropertyDefinition.BuilderdataType(String dataType)The data type of the property definition.AssetModelPropertyDefinition.BuilderdataType(PropertyDataType dataType)The data type of the property definition.AssetModelPropertyDefinition.BuilderdataTypeSpec(String dataTypeSpec)The data type of the structure for this property.AssetModelPropertyDefinition.BuilderexternalId(String externalId)An external ID to assign to the property definition.AssetModelPropertyDefinition.Builderid(String id)The ID to assign to the asset model property, if desired.AssetModelPropertyDefinition.Buildername(String name)The name of the property definition.default AssetModelPropertyDefinition.Buildertype(Consumer<PropertyType.Builder> type)The property definition type (seePropertyType).AssetModelPropertyDefinition.Buildertype(PropertyType type)The property definition type (seePropertyType).AssetModelPropertyDefinition.Builderunit(String unit)The unit of the property definition, such asNewtonsorRPM.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
AssetModelPropertyDefinition.Builder name(String name)
The name of the property definition.
- Parameters:
name- The name of the property definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
AssetModelPropertyDefinition.Builder dataType(String dataType)
The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property.- Parameters:
dataType- The data type of the property definition.If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PropertyDataType,PropertyDataType
-
dataType
AssetModelPropertyDefinition.Builder dataType(PropertyDataType dataType)
The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property.- Parameters:
dataType- The data type of the property definition.If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PropertyDataType,PropertyDataType
-
dataTypeSpec
AssetModelPropertyDefinition.Builder dataTypeSpec(String dataTypeSpec)
The data type of the structure for this property. This parameter is required on properties that have the
STRUCTdata type.The options for this parameter depend on the type of the composite model in which you define this property. Use
AWS/ALARM_STATEfor alarm state in alarm composite models.- Parameters:
dataTypeSpec- The data type of the structure for this property. This parameter is required on properties that have theSTRUCTdata type.The options for this parameter depend on the type of the composite model in which you define this property. Use
AWS/ALARM_STATEfor alarm state in alarm composite models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
AssetModelPropertyDefinition.Builder unit(String unit)
The unit of the property definition, such as
NewtonsorRPM.- Parameters:
unit- The unit of the property definition, such asNewtonsorRPM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
AssetModelPropertyDefinition.Builder type(PropertyType type)
The property definition type (see
PropertyType). You can only specify one type in a property definition.- Parameters:
type- The property definition type (seePropertyType). You can only specify one type in a property definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
default AssetModelPropertyDefinition.Builder type(Consumer<PropertyType.Builder> type)
The property definition type (see
This is a convenience method that creates an instance of thePropertyType). You can only specify one type in a property definition.PropertyType.Builderavoiding the need to create one manually viaPropertyType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totype(PropertyType).- Parameters:
type- a consumer that will call methods onPropertyType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
type(PropertyType)
-
id
AssetModelPropertyDefinition.Builder id(String id)
The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
- Parameters:
id- The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalId
AssetModelPropertyDefinition.Builder externalId(String externalId)
An external ID to assign to the property definition. The external ID must be unique among property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
- Parameters:
externalId- An external ID to assign to the property definition. The external ID must be unique among property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-