Class PodGroupSchedulingPolicy
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha3.PodGroupSchedulingPolicy
-
- All Implemented Interfaces:
Editable<PodGroupSchedulingPolicyBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodGroupSchedulingPolicy extends Object implements Editable<PodGroupSchedulingPolicyBuilder>, KubernetesResource
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodGroupSchedulingPolicy()No args constructor for use in serializationPodGroupSchedulingPolicy(BasicSchedulingPolicy basic, GangSchedulingPolicy gang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodGroupSchedulingPolicyBuilderedit()Map<String,Object>getAdditionalProperties()BasicSchedulingPolicygetBasic()PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup.GangSchedulingPolicygetGang()PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBasic(BasicSchedulingPolicy basic)PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup.voidsetGang(GangSchedulingPolicy gang)PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup.PodGroupSchedulingPolicyBuildertoBuilder()
-
-
-
Constructor Detail
-
PodGroupSchedulingPolicy
public PodGroupSchedulingPolicy()
No args constructor for use in serialization
-
PodGroupSchedulingPolicy
public PodGroupSchedulingPolicy(BasicSchedulingPolicy basic, GangSchedulingPolicy gang)
-
-
Method Detail
-
getBasic
public BasicSchedulingPolicy getBasic()
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.
-
setBasic
public void setBasic(BasicSchedulingPolicy basic)
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.
-
getGang
public GangSchedulingPolicy getGang()
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.
-
setGang
public void setGang(GangSchedulingPolicy gang)
PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.
-
edit
public PodGroupSchedulingPolicyBuilder edit()
- Specified by:
editin interfaceEditable<PodGroupSchedulingPolicyBuilder>
-
toBuilder
public PodGroupSchedulingPolicyBuilder toBuilder()
-
-