Class DiscoveredResource.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of DiscoveredResource.
    • Method Detail

      • setLinks

        public DiscoveredResource.Builder setLinks​(java.util.List<ResourceLink> links)
        The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        links - New value for the property.
      • setSchema

        public DiscoveredResource.Builder setSchema​(java.lang.String schema)
        Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        schema - New value for the property.
      • setLastSyncTime

        public DiscoveredResource.Builder setLastSyncTime​(java.lang.Long lastSyncTime)
        Timestamp of last modification format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        lastSyncTime - New value for the property.
      • setDescription

        public DiscoveredResource.Builder setDescription​(java.lang.String description)
        Description of this resource
        Parameters:
        description - New value for the property.
      • setDisplayName

        public DiscoveredResource.Builder setDisplayName​(java.lang.String displayName)
        Defaults to ID if not set
        Parameters:
        displayName - New value for the property.
      • setResourceType

        public DiscoveredResource.Builder setResourceType​(java.lang.String resourceType)
        The type of this resource.
        Parameters:
        resourceType - New value for the property.
      • setScope

        public DiscoveredResource.Builder setScope​(java.util.List<DiscoveredResourceScope> scope)
        Specifies list of scope of discovered resource. e.g. if VHC path is associated with principal identity, who owns the discovered resource, then scope id will be VHC path and scope type will be VHC.
        Parameters:
        scope - New value for the property.
      • setTags

        public DiscoveredResource.Builder setTags​(java.util.List<Tag> tags)
        Opaque identifiers meaningful to the API user
        Parameters:
        tags - New value for the property.