public static final class LastOperation.Builder extends Object
LastOperation.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
LastOperation |
build()
Builds a new
LastOperation. |
LastOperation.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
LastOperation.Builder |
description(String description)
Initializes the value for the
description attribute. |
LastOperation.Builder |
from(LastOperation instance)
Fill a builder with attribute values from the provided
LastOperation instance. |
LastOperation.Builder |
state(String state)
Initializes the value for the
state attribute. |
LastOperation.Builder |
type(String type)
Initializes the value for the
type attribute. |
LastOperation.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final LastOperation.Builder from(LastOperation instance)
LastOperation instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final LastOperation.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final LastOperation.Builder description(String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocationpublic final LastOperation.Builder state(String state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic final LastOperation.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final LastOperation.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic LastOperation build()
LastOperation.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.