Class DeploymentConfiguration
- java.lang.Object
-
- com.amazonaws.services.ecs.model.DeploymentConfiguration
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DeploymentConfiguration extends Object implements Serializable, Cloneable
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeploymentConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentConfiguration
clone()
boolean
equals(Object obj)
Integer
getMaximumPercent()
The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.Integer
getMinimumHealthyPercent()
The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.int
hashCode()
void
setMaximumPercent(Integer maximumPercent)
The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.void
setMinimumHealthyPercent(Integer minimumHealthyPercent)
The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.String
toString()
Returns a string representation of this object; useful for testing and debugging.DeploymentConfiguration
withMaximumPercent(Integer maximumPercent)
The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.DeploymentConfiguration
withMinimumHealthyPercent(Integer minimumHealthyPercent)
The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.
-
-
-
Method Detail
-
setMaximumPercent
public void setMaximumPercent(Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Parameters:
maximumPercent
- The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.
-
getMaximumPercent
public Integer getMaximumPercent()
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Returns:
- The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.
-
withMaximumPercent
public DeploymentConfiguration withMaximumPercent(Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Parameters:
maximumPercent
- The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinimumHealthyPercent
public void setMinimumHealthyPercent(Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Parameters:
minimumHealthyPercent
- The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.
-
getMinimumHealthyPercent
public Integer getMinimumHealthyPercent()
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Returns:
- The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.
-
withMinimumHealthyPercent
public DeploymentConfiguration withMinimumHealthyPercent(Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Parameters:
minimumHealthyPercent
- The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DeploymentConfiguration clone()
-
-