public static class ResourceLock.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResourceLock |
build() |
ResourceLock.Builder |
copy(ResourceLock model) |
ResourceLock.Builder |
message(String message)
A message added by the lock creator.
|
ResourceLock.Builder |
relatedResourceId(String relatedResourceId)
The resource ID that is locking this resource.
|
ResourceLock.Builder |
timeCreated(Date timeCreated)
Indicates when the lock was created, in the format defined by RFC 3339.
|
ResourceLock.Builder |
type(ResourceLock.Type type)
Lock type.
|
public ResourceLock.Builder type(ResourceLock.Type type)
Lock type.
type
- the value to setpublic ResourceLock.Builder relatedResourceId(String relatedResourceId)
The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
relatedResourceId
- the value to setpublic ResourceLock.Builder message(String message)
A message added by the lock creator. The message typically gives an indication of why the resource is locked.
message
- the value to setpublic ResourceLock.Builder timeCreated(Date timeCreated)
Indicates when the lock was created, in the format defined by RFC 3339.
timeCreated
- the value to setpublic ResourceLock build()
public ResourceLock.Builder copy(ResourceLock model)
Copyright © 2016–2024. All rights reserved.