EvStatus.Builder


public final class EvStatus.Builder


A builder of EvStatus.

Summary

Public constructors

Public methods

@NonNull EvStatus

Constructs the EvStatus defined by this builder.

@NonNull EvStatus.Builder
setEvChargePortConnected(
    @NonNull CarValue<Boolean> evChargePortConnected
)

Sets if the EV charge port is connected with a CarValue. .

@NonNull EvStatus.Builder

Sets if the EV charge port is open with a CarValue.

Public constructors

Builder

Added in 1.2.0
public Builder()

Public methods

build

Added in 1.2.0
public @NonNull EvStatus build()

Constructs the EvStatus defined by this builder.

setEvChargePortConnected

Added in 1.2.0
public @NonNull EvStatus.Builder setEvChargePortConnected(
    @NonNull CarValue<Boolean> evChargePortConnected
)

Sets if the EV charge port is connected with a CarValue. .

Throws
java.lang.NullPointerException

if evChargePortConnected is null

setEvChargePortOpen

Added in 1.2.0
public @NonNull EvStatus.Builder setEvChargePortOpen(@NonNull CarValue<Boolean> evChargePortOpen)

Sets if the EV charge port is open with a CarValue.

Throws
java.lang.NullPointerException

if evChargePortOpen is null