Class JobEntity

    • Method Detail

      • environmentDetails

        public final EnvironmentDetailsEntity environmentDetails()

        The environment details for the job entity.

        Returns:
        The environment details for the job entity.
      • jobAttachmentDetails

        public final JobAttachmentDetailsEntity jobAttachmentDetails()

        The job attachment details.

        Returns:
        The job attachment details.
      • jobDetails

        public final JobDetailsEntity jobDetails()

        The job details.

        Returns:
        The job details.
      • stepDetails

        public final StepDetailsEntity stepDetails()

        The step details.

        Returns:
        The step details.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromEnvironmentDetails

        public static JobEntity fromEnvironmentDetails​(EnvironmentDetailsEntity environmentDetails)
        Create an instance of this class with environmentDetails() initialized to the given value.

        The environment details for the job entity.

        Parameters:
        environmentDetails - The environment details for the job entity.
      • fromEnvironmentDetails

        public static JobEntity fromEnvironmentDetails​(Consumer<EnvironmentDetailsEntity.Builder> environmentDetails)
        Create an instance of this class with environmentDetails() initialized to the given value.

        The environment details for the job entity.

        Parameters:
        environmentDetails - The environment details for the job entity.
      • fromJobAttachmentDetails

        public static JobEntity fromJobAttachmentDetails​(JobAttachmentDetailsEntity jobAttachmentDetails)
        Create an instance of this class with jobAttachmentDetails() initialized to the given value.

        The job attachment details.

        Parameters:
        jobAttachmentDetails - The job attachment details.
      • fromJobDetails

        public static JobEntity fromJobDetails​(JobDetailsEntity jobDetails)
        Create an instance of this class with jobDetails() initialized to the given value.

        The job details.

        Parameters:
        jobDetails - The job details.
      • fromStepDetails

        public static JobEntity fromStepDetails​(StepDetailsEntity stepDetails)
        Create an instance of this class with stepDetails() initialized to the given value.

        The step details.

        Parameters:
        stepDetails - The step details.
      • type

        public JobEntity.Type type()
        Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be JobEntity.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be JobEntity.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.