Class ImmutableRepositoryCreateStatus.Builder
- java.lang.Object
-
- com.spotify.github.v3.repos.requests.ImmutableRepositoryCreateStatus.Builder
-
- Enclosing class:
- ImmutableRepositoryCreateStatus
@NotThreadSafe public static final class ImmutableRepositoryCreateStatus.Builder extends Object
Builds instances of typeImmutableRepositoryCreateStatus
. Initialize attributes and then invoke thebuild()
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableRepositoryCreateStatus
build()
Builds a newImmutableRepositoryCreateStatus
.ImmutableRepositoryCreateStatus.Builder
context(String context)
Initializes the value for thecontext
attribute.ImmutableRepositoryCreateStatus.Builder
description(String description)
Initializes the value for thedescription
attribute.ImmutableRepositoryCreateStatus.Builder
from(RepositoryCreateStatus instance)
Fill a builder with attribute values from the providedRepositoryCreateStatus
instance.ImmutableRepositoryCreateStatus.Builder
state(String state)
Initializes the value for thestate
attribute.ImmutableRepositoryCreateStatus.Builder
targetUrl(URI targetUrl)
Initializes the value for thetargetUrl
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableRepositoryCreateStatus.Builder from(RepositoryCreateStatus instance)
Fill a builder with attribute values from the providedRepositoryCreateStatus
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
state
@CanIgnoreReturnValue public final ImmutableRepositoryCreateStatus.Builder state(@Nullable String state)
Initializes the value for thestate
attribute.- Parameters:
state
- The value for state (can benull
)- Returns:
this
builder for use in a chained invocation
-
targetUrl
@CanIgnoreReturnValue public final ImmutableRepositoryCreateStatus.Builder targetUrl(@Nullable URI targetUrl)
Initializes the value for thetargetUrl
attribute.- Parameters:
targetUrl
- The value for targetUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableRepositoryCreateStatus.Builder description(@Nullable String description)
Initializes the value for thedescription
attribute.- Parameters:
description
- The value for description (can benull
)- Returns:
this
builder for use in a chained invocation
-
context
@CanIgnoreReturnValue public final ImmutableRepositoryCreateStatus.Builder context(@Nullable String context)
Initializes the value for thecontext
attribute.- Parameters:
context
- The value for context (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableRepositoryCreateStatus build()
Builds a newImmutableRepositoryCreateStatus
.- Returns:
- An immutable instance of RepositoryCreateStatus
- Throws:
IllegalStateException
- if any required attributes are missing
-
-