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