TNReplaceVehiclePeripheralRequestBuilder

@objcMembers
public class TNReplaceVehiclePeripheralRequestBuilder : TNDriveMotionRequestBuilder

Builder class for constructing a TNReplaceVehiclePeripheralRequest.

  • Sets the old peripheral for the request.

    Declaration

    Swift

    @discardableResult
    public func oldPeripheral(_ peripheral: TNPeripheral) -> TNReplaceVehiclePeripheralRequestBuilder

    Parameters

    peripheral

    The peripheral to be replaced.

    Return Value

    The builder instance.

  • Sets the new peripheral for the request.

    Declaration

    Swift

    @discardableResult
    public func newPeripheral(_ peripheral: TNPeripheral) -> TNReplaceVehiclePeripheralRequestBuilder

    Parameters

    peripheral

    The new peripheral to be linked.

    Return Value

    The builder instance.

  • Set asset (not required).

    @param assetId: vin or channel client id of vehicle; @param assetContext: query type

    Declaration

    Swift

    @discardableResult
    public func asset(_ assetId: String, _ assetContext: AssetContext) -> Self
  • Builds the request if all required properties are set.

    Declaration

    Swift

    public func build() -> TNReplaceVehiclePeripheralRequest?

    Return Value

    A TNReplaceVehiclePeripheralRequest instance, or nil if required properties are missing.