Class DeploymentStatus.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1beta2.DeploymentStatus.Builder
-
- Enclosing class:
- DeploymentStatus
public static class DeploymentStatus.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStatus.Builder
addToConditions(DeploymentCondition addToConditions)
DeploymentStatus.Builder
availableReplicas(java.lang.Number availableReplicas)
Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.DeploymentStatus
build()
DeploymentStatus.Builder
clearConditions()
DeploymentStatus.Builder
collisionCount(java.lang.Number collisionCount)
Count of hash collisions for the Deployment.DeploymentStatus.Builder
conditions(java.util.Collection<? extends DeploymentCondition> conditions)
DeploymentStatus.Builder
observedGeneration(java.lang.Number observedGeneration)
The generation observed by the deployment controller.DeploymentStatus.Builder
readyReplicas(java.lang.Number readyReplicas)
Total number of ready pods targeted by this deployment.DeploymentStatus.Builder
replicas(java.lang.Number replicas)
Total number of non-terminated pods targeted by this deployment (their labels match the selector).java.lang.String
toString()
DeploymentStatus.Builder
unavailableReplicas(java.lang.Number unavailableReplicas)
Total number of unavailable pods targeted by this deployment.DeploymentStatus.Builder
updatedReplicas(java.lang.Number updatedReplicas)
Total number of non-terminated pods targeted by this deployment that have the desired template spec.
-
-
-
Method Detail
-
availableReplicas
public DeploymentStatus.Builder availableReplicas(java.lang.Number availableReplicas)
Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.- Returns:
this
.
-
collisionCount
public DeploymentStatus.Builder collisionCount(java.lang.Number collisionCount)
Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.- Returns:
this
.
-
addToConditions
public DeploymentStatus.Builder addToConditions(DeploymentCondition addToConditions)
-
conditions
public DeploymentStatus.Builder conditions(java.util.Collection<? extends DeploymentCondition> conditions)
-
clearConditions
public DeploymentStatus.Builder clearConditions()
-
observedGeneration
public DeploymentStatus.Builder observedGeneration(java.lang.Number observedGeneration)
The generation observed by the deployment controller.- Returns:
this
.
-
readyReplicas
public DeploymentStatus.Builder readyReplicas(java.lang.Number readyReplicas)
Total number of ready pods targeted by this deployment.- Returns:
this
.
-
replicas
public DeploymentStatus.Builder replicas(java.lang.Number replicas)
Total number of non-terminated pods targeted by this deployment (their labels match the selector).- Returns:
this
.
-
unavailableReplicas
public DeploymentStatus.Builder unavailableReplicas(java.lang.Number unavailableReplicas)
Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.- Returns:
this
.
-
updatedReplicas
public DeploymentStatus.Builder updatedReplicas(java.lang.Number updatedReplicas)
Total number of non-terminated pods targeted by this deployment that have the desired template spec.- Returns:
this
.
-
build
public DeploymentStatus build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-