Class CustomAvatarSummary.Builder
- java.lang.Object
-
- com.rivet.api.resources.cloud.common.types.CustomAvatarSummary.Builder
-
- All Implemented Interfaces:
CustomAvatarSummary._FinalStage,CustomAvatarSummary.CompleteStage,CustomAvatarSummary.ContentLengthStage,CustomAvatarSummary.CreateTsStage,CustomAvatarSummary.DisplayNameStage,CustomAvatarSummary.UploadIdStage
- Enclosing class:
- CustomAvatarSummary
public static final class CustomAvatarSummary.Builder extends java.lang.Object implements CustomAvatarSummary.UploadIdStage, CustomAvatarSummary.DisplayNameStage, CustomAvatarSummary.CreateTsStage, CustomAvatarSummary.ContentLengthStage, CustomAvatarSummary.CompleteStage, CustomAvatarSummary._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomAvatarSummarybuild()CustomAvatarSummary._FinalStagecomplete(boolean complete)Whether or not this custom avatar has completely been uploaded.CustomAvatarSummary.CompleteStagecontentLength(long contentLength)Unsigned 64 bit integer.CustomAvatarSummary.ContentLengthStagecreateTs(java.time.OffsetDateTime createTs)RFC3339 timestamp.CustomAvatarSummary.CreateTsStagedisplayName(java.lang.String displayName)Represent a resource's readable display name.CustomAvatarSummary.Builderfrom(CustomAvatarSummary other)CustomAvatarSummary.DisplayNameStageuploadId(java.util.UUID uploadId)CustomAvatarSummary._FinalStageurl(java.lang.String url)The URL of this custom avatar image.CustomAvatarSummary._FinalStageurl(java.util.Optional<java.lang.String> url)
-
-
-
Method Detail
-
from
public CustomAvatarSummary.Builder from(CustomAvatarSummary other)
- Specified by:
fromin interfaceCustomAvatarSummary.UploadIdStage
-
uploadId
public CustomAvatarSummary.DisplayNameStage uploadId(java.util.UUID uploadId)
- Specified by:
uploadIdin interfaceCustomAvatarSummary.UploadIdStage
-
displayName
public CustomAvatarSummary.CreateTsStage displayName(java.lang.String displayName)
Represent a resource's readable display name.
- Specified by:
displayNamein interfaceCustomAvatarSummary.DisplayNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createTs
public CustomAvatarSummary.ContentLengthStage createTs(java.time.OffsetDateTime createTs)
RFC3339 timestamp.
- Specified by:
createTsin interfaceCustomAvatarSummary.CreateTsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentLength
public CustomAvatarSummary.CompleteStage contentLength(long contentLength)
Unsigned 64 bit integer.
- Specified by:
contentLengthin interfaceCustomAvatarSummary.ContentLengthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
complete
public CustomAvatarSummary._FinalStage complete(boolean complete)
Whether or not this custom avatar has completely been uploaded.
- Specified by:
completein interfaceCustomAvatarSummary.CompleteStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public CustomAvatarSummary._FinalStage url(java.lang.String url)
The URL of this custom avatar image. Only present if upload is complete.
- Specified by:
urlin interfaceCustomAvatarSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public CustomAvatarSummary._FinalStage url(java.util.Optional<java.lang.String> url)
- Specified by:
urlin interfaceCustomAvatarSummary._FinalStage
-
build
public CustomAvatarSummary build()
- Specified by:
buildin interfaceCustomAvatarSummary._FinalStage
-
-