Interface CompositeModelProperty.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CompositeModelProperty.Builder,CompositeModelProperty>, SdkBuilder<CompositeModelProperty.Builder,CompositeModelProperty>, SdkPojo
Enclosing class:
CompositeModelProperty

public static interface CompositeModelProperty.Builder extends SdkPojo, CopyableBuilder<CompositeModelProperty.Builder,CompositeModelProperty>
  • Method Details

    • name

      The name of the property.

      Parameters:
      name - The name of the property.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of the composite model that defines this property.

      Parameters:
      type - The type of the composite model that defines this property.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetProperty

      CompositeModelProperty.Builder assetProperty(Property assetProperty)
      Sets the value of the AssetProperty property for this object.
      Parameters:
      assetProperty - The new value for the AssetProperty property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetProperty

      default CompositeModelProperty.Builder assetProperty(Consumer<Property.Builder> assetProperty)
      Sets the value of the AssetProperty property for this object. This is a convenience method that creates an instance of the Property.Builder avoiding the need to create one manually via Property.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to assetProperty(Property).

      Parameters:
      assetProperty - a consumer that will call methods on Property.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      The ID of the composite model that contains the property.

      Parameters:
      id - The ID of the composite model that contains the property.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • externalId

      CompositeModelProperty.Builder externalId(String externalId)

      The external ID of the composite model that contains the property. For more information, see Using external IDs in the IoT SiteWise User Guide.

      Parameters:
      externalId - The external ID of the composite model that contains the property. 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.