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