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) -> TNReplaceVehiclePeripheralRequestBuilderParameters
peripheralThe peripheral to be replaced.
Return Value
The builder instance.
-
Sets the new peripheral for the request.
Declaration
Swift
@discardableResult public func newPeripheral(_ peripheral: TNPeripheral) -> TNReplaceVehiclePeripheralRequestBuilderParameters
peripheralThe 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
TNReplaceVehiclePeripheralRequestinstance, ornilif required properties are missing.