Class NvdsUpgradeHostState.Builder

    • Constructor Detail

      • Builder

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

      • setLinks

        public NvdsUpgradeHostState.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 NvdsUpgradeHostState.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.
      • setRevision

        public NvdsUpgradeHostState.Builder setRevision​(java.lang.Long revision)
        The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. format: int32
        Parameters:
        revision - New value for the property.
      • setCreateTime

        public NvdsUpgradeHostState.Builder setCreateTime​(java.lang.Long createTime)
        Timestamp of resource creation 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:
        createTime - New value for the property.
      • setCreateUser

        public NvdsUpgradeHostState.Builder setCreateUser​(java.lang.String createUser)
        ID of the user who created 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:
        createUser - New value for the property.
      • setLastModifiedTime

        public NvdsUpgradeHostState.Builder setLastModifiedTime​(java.lang.Long lastModifiedTime)
        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:
        lastModifiedTime - New value for the property.
      • setLastModifiedUser

        public NvdsUpgradeHostState.Builder setLastModifiedUser​(java.lang.String lastModifiedUser)
        ID of the user who last modified 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:
        lastModifiedUser - New value for the property.
      • setProtection

        public NvdsUpgradeHostState.Builder setProtection​(java.lang.String protection)
        Protection status is one of the following: PROTECTED - the client who retrieved the entity is not allowed to modify it. NOT_PROTECTED - the client who retrieved the entity is allowed to modify it REQUIRE_OVERRIDE - the client who retrieved the entity is a super user and can modify it, but only when providing the request header X-Allow-Overwrite=true. UNKNOWN - the _protection field could not be determined for this entity. 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:
        protection - New value for the property.
      • setSystemOwned

        public NvdsUpgradeHostState.Builder setSystemOwned​(java.lang.Boolean systemOwned)
        Indicates system owned 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:
        systemOwned - New value for the property.
      • setDescription

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

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

        public NvdsUpgradeHostState.Builder setId​(java.lang.String id)
        Unique identifier of this resource
        Parameters:
        id - New value for the property.
      • setResourceType

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

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

        public NvdsUpgradeHostState.Builder setDnExtId​(java.lang.String dnExtId)
        DiscoveredNode identifier 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:
        dnExtId - New value for the property.
      • setHost

        public NvdsUpgradeHostState.Builder setHost​(java.lang.String host)
        TransportNode identifier 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:
        host - New value for the property.
      • setIpAddress

        public NvdsUpgradeHostState.Builder setIpAddress​(java.lang.String ipAddress)
        TransportNode ip address 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:
        ipAddress - New value for the property.
      • setStateDetails

        public NvdsUpgradeHostState.Builder setStateDetails​(java.util.List<java.lang.String> stateDetails)
        Details of the N-VDS upgrade state on the host 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:
        stateDetails - New value for the property.
      • setUpgradeStage

        public NvdsUpgradeHostState.Builder setUpgradeStage​(java.lang.String upgradeStage)
        This field returns current stage of Migration task. Here is a sequence of stages the task cycles through, TN_MIGRATION_TASK_IN_QUEUE RETRIEVE_SAVED_CONFIG, TN_VALIDATE, VMS_RETRIVAL, VMS_UNREGISTRATION, TN_STATELESS_WAIT_FOR_HP, DETACH_TNP, TNP_WAIT, TN_SEND_HS_MIGRATION_MSG, TN_ADD_HOST_TO_VDS, TN_UPDATE, TN_UPDATE_WAIT, TN_DELETE, TN_DELETE_WAIT, FN_DELETE_WAIT, TN_RECONFIG_HOST, TN_CREATE, TN_CREATE_WAIT, UPDATE_TNP_AND_APPLY, TN_EXIT_MM, VMS_REGISTRATION, VMS_REGISTRATION_WAIT, TN_MIGRATION_COMPLETED Depending on the type of host (stateful, stateless, Sddc, etc.) migration task may not cycle through all stages but in will follow above sequence. If stage is TN_MIGRATION_COMPLETED refer to field overall_state for SUCCESS or UPGRADE_FAILURE and state_details for details on same. 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:
        upgradeStage - New value for the property.