Class CreateDelegationControlDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public CreateDelegationControlDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains this Delegation Control.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public CreateDelegationControlDetails.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
      • numApprovalsRequired

        public CreateDelegationControlDetails.Builder numApprovalsRequired​(Integer numApprovalsRequired)
        number of approvals required.
        Parameters:
        numApprovalsRequired - the value to set
        Returns:
        this builder
      • preApprovedServiceProviderActionNames

        public CreateDelegationControlDetails.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 CreateDelegationControlDetails.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 CreateDelegationControlDetails.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 CreateDelegationControlDetails.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
      • notificationTopicId

        public CreateDelegationControlDetails.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
      • vaultId

        public CreateDelegationControlDetails.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 CreateDelegationControlDetails.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
      • freeformTags

        public CreateDelegationControlDetails.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