@Internal public static interface IPodSpec.Jsii$Default extends IPodSpec
IPodSpec.IPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default Container |
addContainer(ContainerProps container)
Add a container to the pod.
|
default void |
addVolume(Volume volume)
Add a volume to the pod.
|
default List<Container> |
getContainers()
The containers belonging to the pod.
|
default RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
default IServiceAccount |
getServiceAccount()
The service account used to run this pod.
|
default List<Volume> |
getVolumes()
The volumes associated with this pod.
|
@Stability(value=Stable) @NotNull default List<Container> getContainers()
Use addContainer to add containers.
getContainers in interface IPodSpec@Stability(value=Stable) @NotNull default List<Volume> getVolumes()
Use addVolume to add volumes.
getVolumes in interface IPodSpec@Stability(value=Stable) @Nullable default RestartPolicy getRestartPolicy()
getRestartPolicy in interface IPodSpec@Stability(value=Stable) @Nullable default IServiceAccount getServiceAccount()
getServiceAccount in interface IPodSpec@Stability(value=Stable) @NotNull default Container addContainer(@NotNull ContainerProps container)
addContainer in interface IPodSpeccontainer - The container. This parameter is required.Copyright © 2021. All rights reserved.