Class ComputeTarget.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • timeCreated

        public ComputeTarget.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created in the timestamp format defined by RFC3339.

        Example: 2020-08-06T21:10:29.41Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • metadata

        public ComputeTarget.Builder metadata​(Map<String,​String> metadata)
        Metadata for the compute target.

        The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore () Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg. TEST Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can’t be reserved Compute Target metadata.

        Parameters:
        metadata - the value to set
        Returns:
        this builder
      • createdBy

        public ComputeTarget.Builder createdBy​(String createdBy)
        The OCID of the user who created the compute target.
        Parameters:
        createdBy - the value to set
        Returns:
        this builder
      • compartmentId

        public ComputeTarget.Builder compartmentId​(String compartmentId)
        The OCID of the compartment associated with the compute target.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public ComputeTarget.Builder displayName​(String displayName)
        A user-friendly display name for the resource.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public ComputeTarget.Builder description​(String description)
        A short description of the compute target.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public ComputeTarget.Builder lifecycleDetails​(String lifecycleDetails)
        Details about the state of the compute target.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • freeformTags

        public ComputeTarget.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. See Resource Tags. Example: {“Department”: “Finance”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public ComputeTarget.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder