public static class DelegationControl.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public DelegationControl.Builder id(String id)
The OCID of the Delegation Control.
id
- the value to setpublic DelegationControl.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the Delegation Control.
compartmentId
- the value to setpublic DelegationControl.Builder displayName(String displayName)
Name of the Delegation Control. The name does not need to be unique.
displayName
- the value to setpublic DelegationControl.Builder description(String description)
Description of the Delegation Control.
description
- the value to setpublic DelegationControl.Builder numApprovalsRequired(Integer numApprovalsRequired)
number of approvals required.
numApprovalsRequired
- the value to setpublic 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.
preApprovedServiceProviderActionNames
- the value to setpublic 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.
delegationSubscriptionIds
- the value to setpublic DelegationControl.Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance)
Set to true to allow all Delegated Resource Access Request to be approved automatically during maintenance.
isAutoApproveDuringMaintenance
- the value to setpublic DelegationControl.Builder resourceIds(List<String> resourceIds)
The OCID of the selected resources that this Delegation Control is applicable to.
resourceIds
- the value to setpublic DelegationControl.Builder resourceType(DelegationControlResourceType resourceType)
Resource type for which the Delegation Control is applicable to.
resourceType
- the value to setpublic DelegationControl.Builder notificationTopicId(String notificationTopicId)
The OCID of the OCI Notification topic to publish messages related to this Delegation Control.
notificationTopicId
- the value to setpublic DelegationControl.Builder notificationMessageFormat(DelegationControl.NotificationMessageFormat notificationMessageFormat)
The format of the OCI Notification messages for this Delegation Control.
notificationMessageFormat
- the value to setpublic 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.
vaultId
- the value to setpublic 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.
vaultKeyId
- the value to setpublic DelegationControl.Builder lifecycleState(DelegationControl.LifecycleState lifecycleState)
The current lifecycle state of the Delegation Control.
lifecycleState
- the value to setpublic DelegationControl.Builder lifecycleStateDetails(String lifecycleStateDetails)
Description of the current lifecycle state in more detail.
lifecycleStateDetails
- the value to setpublic 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’
timeCreated
- the value to setpublic 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’
timeUpdated
- the value to setpublic 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.
timeDeleted
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic DelegationControl build()
public DelegationControl.Builder copy(DelegationControl model)
Copyright © 2016–2024. All rights reserved.