Class DeploymentStrategy
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1beta2.DeploymentStrategy
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class DeploymentStrategy extends java.lang.Object implements com.marcnuri.yakc.model.Model
DeploymentStrategy describes how to replace existing pods with new ones.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeploymentStrategy.Builder
-
Constructor Summary
Constructors Constructor Description DeploymentStrategy()
DeploymentStrategy(RollingUpdateDeployment rollingUpdate, java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeploymentStrategy.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
RollingUpdateDeployment
getRollingUpdate()
java.lang.String
getType()
Type of deployment.int
hashCode()
void
setRollingUpdate(RollingUpdateDeployment rollingUpdate)
void
setType(java.lang.String type)
Type of deployment.DeploymentStrategy.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DeploymentStrategy
public DeploymentStrategy(RollingUpdateDeployment rollingUpdate, java.lang.String type)
-
DeploymentStrategy
public DeploymentStrategy()
-
-
Method Detail
-
builder
public static DeploymentStrategy.Builder builder()
-
toBuilder
public DeploymentStrategy.Builder toBuilder()
-
getRollingUpdate
public RollingUpdateDeployment getRollingUpdate()
-
getType
public java.lang.String getType()
Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
-
setRollingUpdate
public void setRollingUpdate(RollingUpdateDeployment rollingUpdate)
-
setType
public void setType(java.lang.String type)
Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-