Package io.fabric8.openshift.api.model
Class DeploymentStrategy
- java.lang.Object
-
- io.fabric8.openshift.api.model.DeploymentStrategy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeploymentStrategyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeploymentStrategy extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeploymentStrategyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeploymentStrategy describes how to perform a deployment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeploymentStrategy()No args constructor for use in serializationDeploymentStrategy(Long activeDeadlineSeconds, Map<String,String> annotations, CustomDeploymentStrategyParams customParams, Map<String,String> labels, RecreateDeploymentStrategyParams recreateParams, io.fabric8.kubernetes.api.model.ResourceRequirements resources, RollingDeploymentStrategyParams rollingParams, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStrategyBuilderedit()LonggetActiveDeadlineSeconds()activeDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them.Map<String,Object>getAdditionalProperties()Map<String,String>getAnnotations()annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.CustomDeploymentStrategyParamsgetCustomParams()DeploymentStrategy describes how to perform a deployment.Map<String,String>getLabels()labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.RecreateDeploymentStrategyParamsgetRecreateParams()DeploymentStrategy describes how to perform a deployment.io.fabric8.kubernetes.api.model.ResourceRequirementsgetResources()DeploymentStrategy describes how to perform a deployment.RollingDeploymentStrategyParamsgetRollingParams()DeploymentStrategy describes how to perform a deployment.StringgetType()type is the name of a deployment strategy.voidsetActiveDeadlineSeconds(Long activeDeadlineSeconds)activeDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAnnotations(Map<String,String> annotations)annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.voidsetCustomParams(CustomDeploymentStrategyParams customParams)DeploymentStrategy describes how to perform a deployment.voidsetLabels(Map<String,String> labels)labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.voidsetRecreateParams(RecreateDeploymentStrategyParams recreateParams)DeploymentStrategy describes how to perform a deployment.voidsetResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)DeploymentStrategy describes how to perform a deployment.voidsetRollingParams(RollingDeploymentStrategyParams rollingParams)DeploymentStrategy describes how to perform a deployment.voidsetType(String type)type is the name of a deployment strategy.DeploymentStrategyBuildertoBuilder()
-
-
-
Constructor Detail
-
DeploymentStrategy
public DeploymentStrategy()
No args constructor for use in serialization
-
DeploymentStrategy
public DeploymentStrategy(Long activeDeadlineSeconds, Map<String,String> annotations, CustomDeploymentStrategyParams customParams, Map<String,String> labels, RecreateDeploymentStrategyParams recreateParams, io.fabric8.kubernetes.api.model.ResourceRequirements resources, RollingDeploymentStrategyParams rollingParams, String type)
-
-
Method Detail
-
getActiveDeadlineSeconds
public Long getActiveDeadlineSeconds()
activeDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them.
-
setActiveDeadlineSeconds
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds)
activeDeadlineSeconds is the duration in seconds that the deployer pods for this deployment config may be active on a node before the system actively tries to terminate them.
-
getAnnotations
public Map<String,String> getAnnotations()
annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
-
setAnnotations
public void setAnnotations(Map<String,String> annotations)
annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
-
getCustomParams
public CustomDeploymentStrategyParams getCustomParams()
DeploymentStrategy describes how to perform a deployment.
-
setCustomParams
public void setCustomParams(CustomDeploymentStrategyParams customParams)
DeploymentStrategy describes how to perform a deployment.
-
getLabels
public Map<String,String> getLabels()
labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
-
setLabels
public void setLabels(Map<String,String> labels)
labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
-
getRecreateParams
public RecreateDeploymentStrategyParams getRecreateParams()
DeploymentStrategy describes how to perform a deployment.
-
setRecreateParams
public void setRecreateParams(RecreateDeploymentStrategyParams recreateParams)
DeploymentStrategy describes how to perform a deployment.
-
getResources
public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
DeploymentStrategy describes how to perform a deployment.
-
setResources
public void setResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
DeploymentStrategy describes how to perform a deployment.
-
getRollingParams
public RollingDeploymentStrategyParams getRollingParams()
DeploymentStrategy describes how to perform a deployment.
-
setRollingParams
public void setRollingParams(RollingDeploymentStrategyParams rollingParams)
DeploymentStrategy describes how to perform a deployment.
-
getType
public String getType()
type is the name of a deployment strategy.
-
setType
public void setType(String type)
type is the name of a deployment strategy.
-
edit
public DeploymentStrategyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeploymentStrategyBuilder>
-
toBuilder
public DeploymentStrategyBuilder toBuilder()
-
-