Interface Device.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Device.Builder,
,Device> SdkBuilder<Device.Builder,
,Device> SdkPojo
- Enclosing class:
Device
-
Method Summary
Modifier and TypeMethodDescriptiondefault Device.Builder
capabilityReport
(Consumer<MatterCapabilityReport.Builder> capabilityReport) The capability report for the device.capabilityReport
(MatterCapabilityReport capabilityReport) The capability report for the device.capabilitySchemas
(Collection<CapabilitySchemaItem> capabilitySchemas) Report of all capabilities supported by the device.capabilitySchemas
(Consumer<CapabilitySchemaItem.Builder>... capabilitySchemas) Report of all capabilities supported by the device.capabilitySchemas
(CapabilitySchemaItem... capabilitySchemas) Report of all capabilities supported by the device.connectorDeviceId
(String connectorDeviceId) The device id as defined by the connector.connectorDeviceName
(String connectorDeviceName) The name of the device as defined by the connector.deviceMetadata
(Document deviceMetadata) The metadata attributes for a device.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, sdkFieldNameToField, sdkFields
-
Method Details
-
connectorDeviceId
The device id as defined by the connector.
This parameter is used for cloud-to-cloud devices only.
- Parameters:
connectorDeviceId
- The device id as defined by the connector.This parameter is used for cloud-to-cloud devices only.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectorDeviceName
The name of the device as defined by the connector.
- Parameters:
connectorDeviceName
- The name of the device as defined by the connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilityReport
The capability report for the device.
- Parameters:
capabilityReport
- The capability report for the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilityReport
The capability report for the device.
This is a convenience method that creates an instance of theMatterCapabilityReport.Builder
avoiding the need to create one manually viaMatterCapabilityReport.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapabilityReport(MatterCapabilityReport)
.- Parameters:
capabilityReport
- a consumer that will call methods onMatterCapabilityReport.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capabilitySchemas
Report of all capabilities supported by the device.
- Parameters:
capabilitySchemas
- Report of all capabilities supported by the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilitySchemas
Report of all capabilities supported by the device.
- Parameters:
capabilitySchemas
- Report of all capabilities supported by the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilitySchemas
Report of all capabilities supported by the device.
This is a convenience method that creates an instance of theCapabilitySchemaItem.Builder
avoiding the need to create one manually viaCapabilitySchemaItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapabilitySchemas(List<CapabilitySchemaItem>)
.- Parameters:
capabilitySchemas
- a consumer that will call methods onCapabilitySchemaItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deviceMetadata
The metadata attributes for a device.
- Parameters:
deviceMetadata
- The metadata attributes for a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-