@Generated(value="jsii-pacmak/1.43.0 (build b69a797)", date="2021-11-09T00:21:33.853Z") @Stability(value=Stable) public class PodSpec extends software.amazon.jsii.JsiiObject implements IPodSpec
| Modifier and Type | Class and Description |
|---|---|
static class |
PodSpec.Builder
A fluent builder for
PodSpec. |
software.amazon.jsii.JsiiObject.InitializationModeIPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
PodSpec() |
protected |
PodSpec(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PodSpec(software.amazon.jsii.JsiiObjectRef objRef) |
|
PodSpec(PodSpecProps props) |
| Modifier and Type | Method and Description |
|---|---|
Container |
addContainer(ContainerProps container)
Add a container to the pod.
|
void |
addVolume(Volume volume)
Add a volume to the pod.
|
List<Container> |
getContainers()
The containers belonging to the pod.
|
RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
The service account used to run this pod.
|
List<Volume> |
getVolumes()
The volumes associated with this pod.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PodSpec(software.amazon.jsii.JsiiObjectRef objRef)
protected PodSpec(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public PodSpec(@Nullable
PodSpecProps props)
props - @Stability(value=Stable) public PodSpec()
@Stability(value=Stable) @NotNull public Container addContainer(@NotNull ContainerProps container)
addContainer in interface IPodSpeccontainer - This parameter is required.@Stability(value=Stable)
public void addVolume(@NotNull
Volume volume)
@Stability(value=Stable) @NotNull public List<Container> getContainers()
Use addContainer to add containers.
getContainers in interface IPodSpec@Stability(value=Stable) @NotNull public List<Volume> getVolumes()
Use addVolume to add volumes.
getVolumes in interface IPodSpec@Stability(value=Stable) @Nullable public RestartPolicy getRestartPolicy()
getRestartPolicy in interface IPodSpec@Stability(value=Stable) @Nullable public IServiceAccount getServiceAccount()
getServiceAccount in interface IPodSpecCopyright © 2021. All rights reserved.