Model.Builder


class Model.Builder


A builder of Model.

Summary

Public constructors

Public functions

Model

Constructs the Model defined by this builder.

Model.Builder
setManufacturer(manufacturer: CarValue<String!>)

Sets the car manufacturer.

Model.Builder

Sets the car model name.

Model.Builder
setYear(year: CarValue<Int!>)

Sets the car model year.

Public constructors

Builder

Added in 1.1.0
Builder()

Public functions

build

Added in 1.1.0
fun build(): Model

Constructs the Model defined by this builder.

setManufacturer

Added in 1.1.0
fun setManufacturer(manufacturer: CarValue<String!>): Model.Builder

Sets the car manufacturer.

Throws
java.lang.NullPointerException

if manufacturer is null

setName

Added in 1.1.0
fun setName(name: CarValue<String!>): Model.Builder

Sets the car model name.

Throws
java.lang.NullPointerException

if name is null

setYear

Added in 1.1.0
fun setYear(year: CarValue<Int!>): Model.Builder

Sets the car model year.

Throws
java.lang.NullPointerException

if year is null