public static final class CopySourceApplicationRequest.Builder extends Object
CopySourceApplicationRequest
.
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 |
---|---|
CopySourceApplicationRequest |
build()
Builds a new
CopySourceApplicationRequest . |
CopySourceApplicationRequest.Builder |
from(CopySourceApplicationRequest instance)
Fill a builder with attribute values from the provided
CopySourceApplicationRequest instance. |
CopySourceApplicationRequest.Builder |
name(String name)
Initializes the value for the
name attribute. |
CopySourceApplicationRequest.Builder |
restart(Boolean restart)
Initializes the value for the
restart attribute. |
CopySourceApplicationRequest.Builder |
stagingTimeout(Duration stagingTimeout)
Initializes the value for the
stagingTimeout attribute. |
CopySourceApplicationRequest.Builder |
startupTimeout(Duration startupTimeout)
Initializes the value for the
startupTimeout attribute. |
CopySourceApplicationRequest.Builder |
targetName(String targetName)
Initializes the value for the
targetName attribute. |
CopySourceApplicationRequest.Builder |
targetOrganization(String targetOrganization)
Initializes the value for the
targetOrganization attribute. |
CopySourceApplicationRequest.Builder |
targetSpace(String targetSpace)
Initializes the value for the
targetSpace attribute. |
public final CopySourceApplicationRequest.Builder from(CopySourceApplicationRequest instance)
CopySourceApplicationRequest
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 CopySourceApplicationRequest.Builder name(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder restart(Boolean restart)
restart
attribute.restart
- The value for restart (can be null
)this
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder stagingTimeout(Duration stagingTimeout)
stagingTimeout
attribute.stagingTimeout
- The value for stagingTimeout (can be null
)this
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder startupTimeout(Duration startupTimeout)
startupTimeout
attribute.startupTimeout
- The value for startupTimeout (can be null
)this
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder targetName(String targetName)
targetName
attribute.targetName
- The value for targetNamethis
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder targetOrganization(String targetOrganization)
targetOrganization
attribute.targetOrganization
- The value for targetOrganization (can be null
)this
builder for use in a chained invocationpublic final CopySourceApplicationRequest.Builder targetSpace(String targetSpace)
targetSpace
attribute.targetSpace
- The value for targetSpace (can be null
)this
builder for use in a chained invocationpublic CopySourceApplicationRequest build()
CopySourceApplicationRequest
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.