Class DelegationControl.Builder
- java.lang.Object
-
- com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.Builder
-
- Enclosing class:
- DelegationControl
public static class DelegationControl.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegationControl
build()
DelegationControl.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the Delegation Control.DelegationControl.Builder
copy(DelegationControl model)
DelegationControl.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DelegationControl.Builder
delegationSubscriptionIds(List<String> delegationSubscriptionIds)
List of Delegation Subscription OCID that are allowed for this Delegation Control.DelegationControl.Builder
description(String description)
Description of the Delegation Control.DelegationControl.Builder
displayName(String displayName)
Name of the Delegation Control.DelegationControl.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.DelegationControl.Builder
id(String id)
The OCID of the Delegation Control.DelegationControl.Builder
isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance)
Set to true to allow all Delegated Resource Access Request to be approved automatically during maintenance.DelegationControl.Builder
lifecycleState(DelegationControl.LifecycleState lifecycleState)
The current lifecycle state of the Delegation Control.DelegationControl.Builder
lifecycleStateDetails(String lifecycleStateDetails)
Description of the current lifecycle state in more detail.DelegationControl.Builder
notificationMessageFormat(DelegationControl.NotificationMessageFormat notificationMessageFormat)
The format of the OCI Notification messages for this Delegation Control.DelegationControl.Builder
notificationTopicId(String notificationTopicId)
The OCID of the OCI Notification topic to publish messages related to this Delegation Control.DelegationControl.Builder
numApprovalsRequired(Integer numApprovalsRequired)
number of approvals required.DelegationControl.Builder
preApprovedServiceProviderActionNames(List<String> preApprovedServiceProviderActionNames)
List of pre-approved Service Provider Action names.DelegationControl.Builder
resourceIds(List<String> resourceIds)
The OCID of the selected resources that this Delegation Control is applicable to.DelegationControl.Builder
resourceType(DelegationControlResourceType resourceType)
Resource type for which the Delegation Control is applicable to.DelegationControl.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.DelegationControl.Builder
timeCreated(Date timeCreated)
Time when the Delegation Control was created expressed in RFC 3339 timestamp format, e.g.DelegationControl.Builder
timeDeleted(Date timeDeleted)
Time when the Delegation Control was deleted expressed in RFC 3339timestamp format, e.g.DelegationControl.Builder
timeUpdated(Date timeUpdated)
Time when the Delegation Control was last modified expressed in RFC 3339 timestamp format, e.g.DelegationControl.Builder
vaultId(String vaultId)
The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service.DelegationControl.Builder
vaultKeyId(String vaultKeyId)
The OCID of the Master Encryption Key in the OCI Vault specified by vaultId.
-
-
-
Method Detail
-
id
public DelegationControl.Builder id(String id)
The OCID of the Delegation Control.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public DelegationControl.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the Delegation Control.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public DelegationControl.Builder displayName(String displayName)
Name of the Delegation Control.The name does not need to be unique.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public DelegationControl.Builder description(String description)
Description of the Delegation Control.- Parameters:
description
- the value to set- Returns:
- this builder
-
numApprovalsRequired
public DelegationControl.Builder numApprovalsRequired(Integer numApprovalsRequired)
number of approvals required.- Parameters:
numApprovalsRequired
- the value to set- Returns:
- this builder
-
preApprovedServiceProviderActionNames
public DelegationControl.Builder preApprovedServiceProviderActionNames(List<String> preApprovedServiceProviderActionNames)
List of pre-approved Service Provider Action names.The list of pre-defined Service Provider Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access Requests associated with a resource governed by this Delegation Control will be automatically approved if the Delegated Resource Access Request only contain Service Provider Actions in the pre-approved list.
- Parameters:
preApprovedServiceProviderActionNames
- the value to set- Returns:
- this builder
-
delegationSubscriptionIds
public DelegationControl.Builder delegationSubscriptionIds(List<String> delegationSubscriptionIds)
List of Delegation Subscription OCID that are allowed for this Delegation Control.The allowed subscriptions will determine the available Service Provider Actions. Only support operators for the allowed subscriptions are allowed to create Delegated Resource Access Request.
- Parameters:
delegationSubscriptionIds
- the value to set- Returns:
- this builder
-
isAutoApproveDuringMaintenance
public DelegationControl.Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance)
Set to true to allow all Delegated Resource Access Request to be approved automatically during maintenance.- Parameters:
isAutoApproveDuringMaintenance
- the value to set- Returns:
- this builder
-
resourceIds
public DelegationControl.Builder resourceIds(List<String> resourceIds)
The OCID of the selected resources that this Delegation Control is applicable to.- Parameters:
resourceIds
- the value to set- Returns:
- this builder
-
resourceType
public DelegationControl.Builder resourceType(DelegationControlResourceType resourceType)
Resource type for which the Delegation Control is applicable to.- Parameters:
resourceType
- the value to set- Returns:
- this builder
-
notificationTopicId
public DelegationControl.Builder notificationTopicId(String notificationTopicId)
The OCID of the OCI Notification topic to publish messages related to this Delegation Control.- Parameters:
notificationTopicId
- the value to set- Returns:
- this builder
-
notificationMessageFormat
public DelegationControl.Builder notificationMessageFormat(DelegationControl.NotificationMessageFormat notificationMessageFormat)
The format of the OCI Notification messages for this Delegation Control.- Parameters:
notificationMessageFormat
- the value to set- Returns:
- this builder
-
vaultId
public DelegationControl.Builder vaultId(String vaultId)
The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service.This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault.
- Parameters:
vaultId
- the value to set- Returns:
- this builder
-
vaultKeyId
public DelegationControl.Builder vaultKeyId(String vaultKeyId)
The OCID of the Master Encryption Key in the OCI Vault specified by vaultId.This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER.
- Parameters:
vaultKeyId
- the value to set- Returns:
- this builder
-
lifecycleState
public DelegationControl.Builder lifecycleState(DelegationControl.LifecycleState lifecycleState)
The current lifecycle state of the Delegation Control.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleStateDetails
public DelegationControl.Builder lifecycleStateDetails(String lifecycleStateDetails)
Description of the current lifecycle state in more detail.- Parameters:
lifecycleStateDetails
- the value to set- Returns:
- this builder
-
timeCreated
public DelegationControl.Builder timeCreated(Date timeCreated)
Time when the Delegation Control was created expressed in RFC 3339 timestamp format, e.g.‘2020-05-22T21:10:29.600Z’
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DelegationControl.Builder timeUpdated(Date timeUpdated)
Time when the Delegation Control was last modified expressed in RFC 3339 timestamp format, e.g.‘2020-05-22T21:10:29.600Z’
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
timeDeleted
public DelegationControl.Builder timeDeleted(Date timeDeleted)
Time when the Delegation Control was deleted expressed in RFC 3339timestamp format, e.g.‘2020-05-22T21:10:29.600Z’. Note a deleted Delegation Control still stays in the system, so that you can still audit Service Provider Actions associated with Delegated Resource Access Requests raised on target resources governed by the deleted Delegation Control.
- Parameters:
timeDeleted
- the value to set- Returns:
- this builder
-
freeformTags
public DelegationControl.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DelegationControl.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public DelegationControl.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public DelegationControl build()
-
copy
public DelegationControl.Builder copy(DelegationControl model)
-
-