Package com.highmobility.autoapi
Class HomeCharger.State.Builder
java.lang.Object
com.highmobility.autoapi.SetCommand.Builder<HomeCharger.State.Builder>
com.highmobility.autoapi.HomeCharger.State.Builder
- Enclosing class:
- HomeCharger.State
public static final class HomeCharger.State.Builder
extends SetCommand.Builder<HomeCharger.State.Builder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPriceTariff(Property<PriceTariff> priceTariff) Add a single price tariffbuild()setAuthenticationMechanism(Property<HomeCharger.AuthenticationMechanism> authenticationMechanism) setAuthenticationState(Property<HomeCharger.AuthenticationState> authenticationState) setChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> chargeCurrent) setChargingPower(Property<com.highmobility.autoapi.value.measurement.Power> chargingPower) setChargingPowerKW(Property<com.highmobility.autoapi.value.measurement.Power> chargingPowerKW) Deprecated.removed the unit from the name.setChargingStatus(Property<HomeCharger.ChargingStatus> chargingStatus) setCoordinates(Property<Coordinates> coordinates) setMaximumChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> maximumChargeCurrent) setMinimumChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> minimumChargeCurrent) setPlugType(Property<HomeCharger.PlugType> plugType) setPriceTariffs(Property<PriceTariff>[] priceTariffs) Add an array of price tariffssetSolarCharging(Property<ActiveState> solarCharging) setWifiHotspotEnabled(Property<EnabledState> wifiHotspotEnabled) setWiFiHotspotPassword(Property<String> wiFiHotspotPassword) setWiFiHotspotSecurity(Property<NetworkSecurity> wiFiHotspotSecurity) setWifiHotspotSSID(Property<String> wifiHotspotSSID) Methods inherited from class com.highmobility.autoapi.SetCommand.Builder
addProperty, getProperties, setBrand, setNonce, setSignature, setTimestamp, setVin
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Overrides:
buildin classSetCommand.Builder<HomeCharger.State.Builder>
-
setChargingStatus
public HomeCharger.State.Builder setChargingStatus(Property<HomeCharger.ChargingStatus> chargingStatus) - Parameters:
chargingStatus- The charging status- Returns:
- The builder
-
setAuthenticationMechanism
public HomeCharger.State.Builder setAuthenticationMechanism(Property<HomeCharger.AuthenticationMechanism> authenticationMechanism) - Parameters:
authenticationMechanism- The authentication mechanism- Returns:
- The builder
-
setPlugType
- Parameters:
plugType- The plug type- Returns:
- The builder
-
setChargingPowerKW
@Deprecated public HomeCharger.State.Builder setChargingPowerKW(Property<com.highmobility.autoapi.value.measurement.Power> chargingPowerKW) Deprecated.removed the unit from the name. Replaced byHomeCharger.State.getChargingPower()- Parameters:
chargingPowerKW- Charging power- Returns:
- The builder
-
setSolarCharging
- Parameters:
solarCharging- The solar charging- Returns:
- The builder
-
setWifiHotspotEnabled
- Parameters:
wifiHotspotEnabled- The wi fi hotspot enabled- Returns:
- The builder
-
setWifiHotspotSSID
- Parameters:
wifiHotspotSSID- The Wi-Fi Hotspot SSID- Returns:
- The builder
-
setWiFiHotspotSecurity
public HomeCharger.State.Builder setWiFiHotspotSecurity(Property<NetworkSecurity> wiFiHotspotSecurity) - Parameters:
wiFiHotspotSecurity- The wi fi hotspot security- Returns:
- The builder
-
setWiFiHotspotPassword
- Parameters:
wiFiHotspotPassword- The Wi-Fi Hotspot password- Returns:
- The builder
-
setAuthenticationState
public HomeCharger.State.Builder setAuthenticationState(Property<HomeCharger.AuthenticationState> authenticationState) - Parameters:
authenticationState- The authentication state- Returns:
- The builder
-
setChargeCurrent
public HomeCharger.State.Builder setChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> chargeCurrent) - Parameters:
chargeCurrent- The charge current- Returns:
- The builder
-
setMaximumChargeCurrent
public HomeCharger.State.Builder setMaximumChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> maximumChargeCurrent) - Parameters:
maximumChargeCurrent- The maximum possible charge current- Returns:
- The builder
-
setMinimumChargeCurrent
public HomeCharger.State.Builder setMinimumChargeCurrent(Property<com.highmobility.autoapi.value.measurement.ElectricCurrent> minimumChargeCurrent) - Parameters:
minimumChargeCurrent- The minimal possible charge current- Returns:
- The builder
-
setCoordinates
- Parameters:
coordinates- The coordinates- Returns:
- The builder
-
setPriceTariffs
Add an array of price tariffs- Parameters:
priceTariffs- The price tariffs- Returns:
- The builder
-
addPriceTariff
Add a single price tariff- Parameters:
priceTariff- The price tariff- Returns:
- The builder
-
setChargingPower
public HomeCharger.State.Builder setChargingPower(Property<com.highmobility.autoapi.value.measurement.Power> chargingPower) - Parameters:
chargingPower- Charging power output from the charger- Returns:
- The builder
-