Class RestDeploymentResult
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.deployments.results.RestDeploymentResult
-
- All Implemented Interfaces:
BambooIdProvider,DeploymentResult,InternalDeploymentResult
- Direct Known Subclasses:
RestDeploymentResultWithLogs
public class RestDeploymentResult extends Object implements DeploymentResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestDeploymentResult()RestDeploymentResult(@NotNull DeploymentResult deploymentResult, @NotNull javax.ws.rs.core.UriBuilder baseUriBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildAgentgetAgent()LonggetAgentId()@Nullable AgentTypegetAgentType()@NotNull com.google.common.collect.ImmutableMap<String,String>getCustomData()@NotNull BuildStategetDeploymentState()@Nullable DeploymentVersiongetDeploymentVersion()@NotNull StringgetDeploymentVersionName()@NotNull EnvironmentgetEnvironment()longgetEnvironmentId()@Nullable DategetExecutedDate()@Nullable DategetFinishedDate()longgetId()@NotNull DeploymentResultKeygetKey()@NotNull LifeCycleStategetLifeCycleState()RestOperationsgetOperations()Operationsobject describing detailed permissions for result@Nullable DategetQueuedDate()@NotNull StringgetReasonSummary()@Nullable DategetStartedDate()@NotNull TriggerReasongetTriggerReason()
-
-
-
Constructor Detail
-
RestDeploymentResult
protected RestDeploymentResult()
-
RestDeploymentResult
public RestDeploymentResult(@NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull javax.ws.rs.core.UriBuilder baseUriBuilder)
-
-
Method Detail
-
getDeploymentVersion
@Nullable public @Nullable DeploymentVersion getDeploymentVersion()
- Specified by:
getDeploymentVersionin interfaceDeploymentResult
-
getDeploymentVersionName
@NotNull public @NotNull String getDeploymentVersionName()
- Specified by:
getDeploymentVersionNamein interfaceInternalDeploymentResult
-
getReasonSummary
@NotNull public @NotNull String getReasonSummary()
- Specified by:
getReasonSummaryin interfaceDeploymentResult
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentResult
-
getDeploymentState
@NotNull public @NotNull BuildState getDeploymentState()
- Specified by:
getDeploymentStatein interfaceInternalDeploymentResult
-
getLifeCycleState
@NotNull public @NotNull LifeCycleState getLifeCycleState()
- Specified by:
getLifeCycleStatein interfaceInternalDeploymentResult
-
getStartedDate
@Nullable public @Nullable Date getStartedDate()
- Specified by:
getStartedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution initiated, e.g. triggered or manually executed by user. Set with
LifeCycleState.PENDINGstate.
-
getQueuedDate
@Nullable public @Nullable Date getQueuedDate()
- Specified by:
getQueuedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUEDstate.
-
getExecutedDate
@Nullable public @Nullable Date getExecutedDate()
- Specified by:
getExecutedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESSstate.
-
getFinishedDate
@Nullable public @Nullable Date getFinishedDate()
- Specified by:
getFinishedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATESstates.
-
getKey
@NotNull public @NotNull DeploymentResultKey getKey()
- Specified by:
getKeyin interfaceDeploymentResult
-
getAgent
public BuildAgent getAgent()
- Specified by:
getAgentin interfaceDeploymentResult
-
getAgentId
public Long getAgentId()
- Specified by:
getAgentIdin interfaceInternalDeploymentResult
-
getAgentType
@Nullable public @Nullable AgentType getAgentType()
- Specified by:
getAgentTypein interfaceInternalDeploymentResult
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason()
- Specified by:
getTriggerReasonin interfaceInternalDeploymentResult
-
getEnvironment
@NotNull public @NotNull Environment getEnvironment()
- Specified by:
getEnvironmentin interfaceDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentIdin interfaceInternalDeploymentResult
-
getCustomData
@NotNull public @NotNull com.google.common.collect.ImmutableMap<String,String> getCustomData()
- Specified by:
getCustomDatain interfaceDeploymentResult
-
getOperations
public RestOperations getOperations()
Description copied from interface:DeploymentResultOperationsobject describing detailed permissions for result- Specified by:
getOperationsin interfaceDeploymentResult- Returns:
-
-