public static final class CreateTaskRequest.Builder extends Object
CreateTaskRequest.
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 |
|---|---|
CreateTaskRequest.Builder |
applicationId(String applicationId)
Initializes the value for the
applicationId attribute. |
CreateTaskRequest |
build()
Builds a new
CreateTaskRequest. |
CreateTaskRequest.Builder |
command(String command)
Initializes the value for the
command attribute. |
CreateTaskRequest.Builder |
diskInMb(Integer diskInMb)
Initializes the value for the
diskInMb attribute. |
CreateTaskRequest.Builder |
dropletId(String dropletId)
Initializes the value for the
dropletId attribute. |
CreateTaskRequest.Builder |
from(CreateTaskRequest instance)
Fill a builder with attribute values from the provided
CreateTaskRequest instance. |
CreateTaskRequest.Builder |
memoryInMb(Integer memoryInMb)
Initializes the value for the
memoryInMb attribute. |
CreateTaskRequest.Builder |
name(String name)
Initializes the value for the
name attribute. |
public final CreateTaskRequest.Builder from(CreateTaskRequest instance)
CreateTaskRequest 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 CreateTaskRequest.Builder applicationId(String applicationId)
applicationId attribute.applicationId - The value for applicationIdthis builder for use in a chained invocationpublic final CreateTaskRequest.Builder command(String command)
command attribute.command - The value for commandthis builder for use in a chained invocationpublic final CreateTaskRequest.Builder diskInMb(Integer diskInMb)
diskInMb attribute.diskInMb - The value for diskInMb (can be null)this builder for use in a chained invocationpublic final CreateTaskRequest.Builder dropletId(String dropletId)
dropletId attribute.dropletId - The value for dropletId (can be null)this builder for use in a chained invocationpublic final CreateTaskRequest.Builder memoryInMb(Integer memoryInMb)
memoryInMb attribute.memoryInMb - The value for memoryInMb (can be null)this builder for use in a chained invocationpublic final CreateTaskRequest.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic CreateTaskRequest build()
CreateTaskRequest.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.