Class PodPresetSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.settings.v1alpha1.PodPresetSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class PodPresetSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
PodPresetSpec is a description of a pod preset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PodPresetSpec.Builder
-
Constructor Summary
Constructors Constructor Description PodPresetSpec()
PodPresetSpec(java.util.List<EnvVar> env, java.util.List<EnvFromSource> envFrom, LabelSelector selector, java.util.List<VolumeMount> volumeMounts, java.util.List<Volume> volumes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PodPresetSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<EnvVar>
getEnv()
Env defines the collection of EnvVar to inject into containers.java.util.List<EnvFromSource>
getEnvFrom()
EnvFrom defines the collection of EnvFromSource to inject into containers.LabelSelector
getSelector()
java.util.List<VolumeMount>
getVolumeMounts()
VolumeMounts defines the collection of VolumeMount to inject into containers.java.util.List<Volume>
getVolumes()
Volumes defines the collection of Volume to inject into the pod.int
hashCode()
void
setEnv(java.util.List<EnvVar> env)
Env defines the collection of EnvVar to inject into containers.void
setEnvFrom(java.util.List<EnvFromSource> envFrom)
EnvFrom defines the collection of EnvFromSource to inject into containers.void
setSelector(LabelSelector selector)
void
setVolumeMounts(java.util.List<VolumeMount> volumeMounts)
VolumeMounts defines the collection of VolumeMount to inject into containers.void
setVolumes(java.util.List<Volume> volumes)
Volumes defines the collection of Volume to inject into the pod.PodPresetSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PodPresetSpec
public PodPresetSpec(java.util.List<EnvVar> env, java.util.List<EnvFromSource> envFrom, LabelSelector selector, java.util.List<VolumeMount> volumeMounts, java.util.List<Volume> volumes)
-
PodPresetSpec
public PodPresetSpec()
-
-
Method Detail
-
builder
public static PodPresetSpec.Builder builder()
-
toBuilder
public PodPresetSpec.Builder toBuilder()
-
getEnv
public java.util.List<EnvVar> getEnv()
Env defines the collection of EnvVar to inject into containers.
-
getEnvFrom
public java.util.List<EnvFromSource> getEnvFrom()
EnvFrom defines the collection of EnvFromSource to inject into containers.
-
getSelector
public LabelSelector getSelector()
-
getVolumeMounts
public java.util.List<VolumeMount> getVolumeMounts()
VolumeMounts defines the collection of VolumeMount to inject into containers.
-
getVolumes
public java.util.List<Volume> getVolumes()
Volumes defines the collection of Volume to inject into the pod.
-
setEnv
public void setEnv(java.util.List<EnvVar> env)
Env defines the collection of EnvVar to inject into containers.
-
setEnvFrom
public void setEnvFrom(java.util.List<EnvFromSource> envFrom)
EnvFrom defines the collection of EnvFromSource to inject into containers.
-
setSelector
public void setSelector(LabelSelector selector)
-
setVolumeMounts
public void setVolumeMounts(java.util.List<VolumeMount> volumeMounts)
VolumeMounts defines the collection of VolumeMount to inject into containers.
-
setVolumes
public void setVolumes(java.util.List<Volume> volumes)
Volumes defines the collection of Volume to inject into the pod.
-
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
-
-