ClimateProfileRequest.Builder

public final class ClimateProfileRequest.Builder


A builder of ClimateProfileRequest.

Summary

Public constructors

Creates an instance of ClimateProfileRequest.Builder.

Public methods

@NonNull ClimateProfileRequest.Builder
addClimateProfileFeatures(@NonNull CarClimateFeature[] features)

Adds the given CarClimateFeatures in the request.

@NonNull ClimateProfileRequest

Constructs the ClimateProfileRequest defined by this builder.

@NonNull ClimateProfileRequest.Builder

Adds all CarClimateFeatures in the request by enabling all profiles.

Public constructors

Builder

Added in 1.3.0
public Builder()

Creates an instance of ClimateProfileRequest.Builder.

Public methods

addClimateProfileFeatures

public @NonNull ClimateProfileRequest.Builder addClimateProfileFeatures(@NonNull CarClimateFeature[] features)

Adds the given CarClimateFeatures in the request.

Parameters
@NonNull CarClimateFeature[] features

CarClimateFeatures indicates the features the application is interested in

Throws
java.lang.IllegalArgumentException

if the feature flag is not one of ClimateProfileFeatures

build

Added in 1.3.0
public @NonNull ClimateProfileRequest build()

Constructs the ClimateProfileRequest defined by this builder.

setAllClimateProfiles

Added in 1.3.0
public @NonNull ClimateProfileRequest.Builder setAllClimateProfiles()

Adds all CarClimateFeatures in the request by enabling all profiles.