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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLockbuild()ResourceLock.Buildercopy(ResourceLock model)ResourceLock.BuilderisActive(Boolean isActive)Indicates if the lock is active or not.ResourceLock.Buildermessage(String message)A message added by the creator of the lock.ResourceLock.BuilderrelatedResourceId(String relatedResourceId)The ID of the resource that is locking this resource.ResourceLock.BuildertimeCreated(Date timeCreated)When the lock was created.ResourceLock.Buildertype(ResourceLock.Type type)Type of the lock.
 
- 
- 
- 
Method Detail- 
typepublic ResourceLock.Builder type(ResourceLock.Type type) Type of the lock.- Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
relatedResourceIdpublic 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
 
 - 
messagepublic 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
 
 - 
timeCreatedpublic ResourceLock.Builder timeCreated(Date timeCreated) When the lock was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
isActivepublic 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
 
 - 
buildpublic ResourceLock build() 
 - 
copypublic ResourceLock.Builder copy(ResourceLock model) 
 
- 
 
-