Class PostUpdateResult<T>

java.lang.Object
com.atlassian.jira.cloud.jenkins.common.client.PostUpdateResult<T>
Type Parameters:
T - the response entity type. For Builds API, the entity type is BuildApiResponse. For Deployments API the entity type is DeploymentApiResponse.

public class PostUpdateResult<T> extends Object
Represents Jira update result, which can be either a successful response or an error message.
  • Constructor Details

    • PostUpdateResult

      public PostUpdateResult(T responseEntity)
    • PostUpdateResult

      public PostUpdateResult(String errorMessage)
  • Method Details

    • getResponseEntity

      public Optional<T> getResponseEntity()
    • getErrorMessage

      public Optional<String> getErrorMessage()