Class Deployment
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.Deployment
-
public final class Deployment extends Object
Description about a deployment.
-
-
Constructor Summary
Constructors Constructor Description Deployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
deploymentId()
Get the deploymentId property: Deployment identifier.String
deploymentLogsUrl()
Get the deploymentLogsUrl property: Url to access repository action logs.DeploymentResult
deploymentResult()
Get the deploymentResult property: The outcome of the deployment.DeploymentState
deploymentState()
Get the deploymentState property: Current status of the deployment.OffsetDateTime
deploymentTime()
Get the deploymentTime property: The time when the deployment finished.void
validate()
Validates the instance.Deployment
withDeploymentId(String deploymentId)
Set the deploymentId property: Deployment identifier.Deployment
withDeploymentLogsUrl(String deploymentLogsUrl)
Set the deploymentLogsUrl property: Url to access repository action logs.Deployment
withDeploymentResult(DeploymentResult deploymentResult)
Set the deploymentResult property: The outcome of the deployment.Deployment
withDeploymentState(DeploymentState deploymentState)
Set the deploymentState property: Current status of the deployment.Deployment
withDeploymentTime(OffsetDateTime deploymentTime)
Set the deploymentTime property: The time when the deployment finished.
-
-
-
Method Detail
-
deploymentId
public String deploymentId()
Get the deploymentId property: Deployment identifier.- Returns:
- the deploymentId value.
-
withDeploymentId
public Deployment withDeploymentId(String deploymentId)
Set the deploymentId property: Deployment identifier.- Parameters:
deploymentId
- the deploymentId value to set.- Returns:
- the Deployment object itself.
-
deploymentState
public DeploymentState deploymentState()
Get the deploymentState property: Current status of the deployment.- Returns:
- the deploymentState value.
-
withDeploymentState
public Deployment withDeploymentState(DeploymentState deploymentState)
Set the deploymentState property: Current status of the deployment.- Parameters:
deploymentState
- the deploymentState value to set.- Returns:
- the Deployment object itself.
-
deploymentResult
public DeploymentResult deploymentResult()
Get the deploymentResult property: The outcome of the deployment.- Returns:
- the deploymentResult value.
-
withDeploymentResult
public Deployment withDeploymentResult(DeploymentResult deploymentResult)
Set the deploymentResult property: The outcome of the deployment.- Parameters:
deploymentResult
- the deploymentResult value to set.- Returns:
- the Deployment object itself.
-
deploymentTime
public OffsetDateTime deploymentTime()
Get the deploymentTime property: The time when the deployment finished.- Returns:
- the deploymentTime value.
-
withDeploymentTime
public Deployment withDeploymentTime(OffsetDateTime deploymentTime)
Set the deploymentTime property: The time when the deployment finished.- Parameters:
deploymentTime
- the deploymentTime value to set.- Returns:
- the Deployment object itself.
-
deploymentLogsUrl
public String deploymentLogsUrl()
Get the deploymentLogsUrl property: Url to access repository action logs.- Returns:
- the deploymentLogsUrl value.
-
withDeploymentLogsUrl
public Deployment withDeploymentLogsUrl(String deploymentLogsUrl)
Set the deploymentLogsUrl property: Url to access repository action logs.- Parameters:
deploymentLogsUrl
- the deploymentLogsUrl value to set.- Returns:
- the Deployment object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-