Class WorkerDeploymentVersion


  • public class WorkerDeploymentVersion
    extends java.lang.Object
    Represents the version of a specific worker deployment.
    • Constructor Detail

      • WorkerDeploymentVersion

        public WorkerDeploymentVersion​(@Nonnull
                                       java.lang.String deploymentName,
                                       @Nonnull
                                       java.lang.String buildId)
        Build a worker deployment version from an explicit deployment name and build ID.
    • Method Detail

      • fromCanonicalString

        public static WorkerDeploymentVersion fromCanonicalString​(java.lang.String canonicalString)
        Build a worker deployment version from a canonical string representation.
        Parameters:
        canonicalString - The canonical string representation of the worker deployment version, formatted as "deploymentName.buildId". Deployment name must not have a "." in it.
        Returns:
        A new instance of WorkerDeploymentVersion.
        Throws:
        java.lang.IllegalArgumentException - if the input string is not in the expected format.
      • toCanonicalString

        public java.lang.String toCanonicalString()
        Returns:
        The canonical string representation of this worker deployment version.
      • getDeploymentName

        @Nullable
        public java.lang.String getDeploymentName()
        Returns:
        The name of the deployment.
      • getBuildId

        @Nullable
        public java.lang.String getBuildId()
        Returns:
        The Build ID of this version.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object