Package com.oracle.bmc.identity.model
Class ResourceLock.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.ResourceLock.Builder
-
- Enclosing class:
- ResourceLock
public static class ResourceLock.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLock
build()
ResourceLock.Builder
copy(ResourceLock model)
ResourceLock.Builder
isActive(Boolean isActive)
Indicates if the lock is active or not.ResourceLock.Builder
message(String message)
A message added by the creator of the lock.ResourceLock.Builder
relatedResourceId(String relatedResourceId)
The ID of the resource that is locking this resource.ResourceLock.Builder
timeCreated(Date timeCreated)
When the lock was created.ResourceLock.Builder
type(ResourceLock.Type type)
Type of the lock.
-
-
-
Method Detail
-
type
public ResourceLock.Builder type(ResourceLock.Type type)
Type of the lock.- Parameters:
type
- the value to set- Returns:
- this builder
-
relatedResourceId
public ResourceLock.Builder relatedResourceId(String relatedResourceId)
The ID of the resource that is locking this resource.Indicates that deleting this resource will remove the lock.
- Parameters:
relatedResourceId
- the value to set- Returns:
- this builder
-
message
public ResourceLock.Builder message(String message)
A message added by the creator of the lock.This is typically used to give an indication of why the resource is locked.
- Parameters:
message
- the value to set- Returns:
- this builder
-
timeCreated
public ResourceLock.Builder timeCreated(Date timeCreated)
When the lock was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
isActive
public ResourceLock.Builder isActive(Boolean isActive)
Indicates if the lock is active or not.For example, if there are mutliple FULL locks, the first-created FULL lock will be effective.
- Parameters:
isActive
- the value to set- Returns:
- this builder
-
build
public ResourceLock build()
-
copy
public ResourceLock.Builder copy(ResourceLock model)
-
-