Class ResourceSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • resourceType

        public ResourceSummary.Builder resourceType​(String resourceType)
        The resource type name.
        Parameters:
        resourceType - the value to set
        Returns:
        this builder
      • identifier

        public ResourceSummary.Builder identifier​(String identifier)
        The unique identifier for this particular resource, usually an OCID.
        Parameters:
        identifier - the value to set
        Returns:
        this builder
      • compartmentId

        public ResourceSummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains this resource.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • timeCreated

        public ResourceSummary.Builder timeCreated​(Date timeCreated)
        The time that this resource was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • displayName

        public ResourceSummary.Builder displayName​(String displayName)
        The display name (or name) of this resource, if one exists.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • availabilityDomain

        public ResourceSummary.Builder availabilityDomain​(String availabilityDomain)
        The availability domain where this resource exists, if applicable.
        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • lifecycleState

        public ResourceSummary.Builder lifecycleState​(String lifecycleState)
        The lifecycle state of this resource, if applicable.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public ResourceSummary.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 ResourceSummary.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 ResourceSummary.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags associated with this resource, if any.

        System tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder
      • identityContext

        public ResourceSummary.Builder identityContext​(Map<String,​Object> identityContext)
        Additional identifiers to use together in a “Get” request for a specified resource, only required for resource types that explicitly cannot be retrieved by using a single identifier, such as the resource’s OCID.
        Parameters:
        identityContext - the value to set
        Returns:
        this builder
      • additionalDetails

        public ResourceSummary.Builder additionalDetails​(Map<String,​Object> additionalDetails)
        Additional resource attribute fields of this resource that match queries with a return clause, if any.
        For example, if you ran a query to find the private IP addresses, public
        IP addresses, and isPrimary field of the VNIC attachment on instance resources, that
        field would be included in the ResourceSummary object as: {“additionalDetails”:
        {“attachedVnic”: [{“publicIP” : “172.110.110.110”,“privateIP” : “10.10.10.10”,“isPrimary”
        true}, {“publicIP” : “172.110.110.111”,“privateIP” : “10.10.10.11”,“isPrimary” : false}]}. The structure of the additional details attribute fields depends on the matching resource.
        Parameters:
        additionalDetails - the value to set
        Returns:
        this builder