Class SandboxSnapshot.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public SandboxSnapshot.Builder displayName​(String displayName)
        Display name for the sandbox snapshot.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • projectId

        public SandboxSnapshot.Builder projectId​(String projectId)
        Project identifier that the sandbox snapshot belongs to.
        Parameters:
        projectId - the value to set
        Returns:
        this builder
      • sandboxId

        public SandboxSnapshot.Builder sandboxId​(String sandboxId)
        Identifier of the sandbox used to create the sandbox snapshot.
        Parameters:
        sandboxId - the value to set
        Returns:
        this builder
      • runtime

        public SandboxSnapshot.Builder runtime​(String runtime)
        Runtime identifier for the sandbox snapshot.
        Parameters:
        runtime - the value to set
        Returns:
        this builder
      • expirationDuration

        public SandboxSnapshot.Builder expirationDuration​(String expirationDuration)
        Duration after creation before the sandbox snapshot expires, in ISO 8601 duration format.

        For example, P7D for 7 days or PT24H for 24 hours.

        Parameters:
        expirationDuration - the value to set
        Returns:
        this builder
      • sizeBytes

        public SandboxSnapshot.Builder sizeBytes​(Long sizeBytes)
        Size of the sandbox snapshot archive in bytes.
        Parameters:
        sizeBytes - the value to set
        Returns:
        this builder
      • timeCreated

        public SandboxSnapshot.Builder timeCreated​(Date timeCreated)
        The date and time the sandbox snapshot was created, in RFC 3339 format.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public SandboxSnapshot.Builder timeUpdated​(Date timeUpdated)
        The date and time the sandbox snapshot was last updated, in RFC 3339 format.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • timeExpires

        public SandboxSnapshot.Builder timeExpires​(Date timeExpires)
        The date and time the sandbox snapshot expires, in RFC 3339 format.
        Parameters:
        timeExpires - the value to set
        Returns:
        this builder