@Internal public static final class IPodTemplate.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IPodTemplate.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIPodTemplate.Jsii$Default, IPodTemplate.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| 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.
|
org.cdk8s.ApiObjectMetadataDefinition |
getPodMetadata()
Provides read/write access to the underlying pod metadata of the resource.
|
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, jsiiStaticSet@Stability(value=Stable) @NotNull public final List<Container> getContainers()
Use addContainer to add containers.
getContainers in interface IPodSpecgetContainers in interface IPodSpec.Jsii$DefaultgetContainers in interface IPodTemplate.Jsii$Default@Stability(value=Stable) @NotNull public final List<Volume> getVolumes()
Use addVolume to add volumes.
getVolumes in interface IPodSpecgetVolumes in interface IPodSpec.Jsii$DefaultgetVolumes in interface IPodTemplate.Jsii$Default@Stability(value=Stable) @Nullable public final RestartPolicy getRestartPolicy()
getRestartPolicy in interface IPodSpecgetRestartPolicy in interface IPodSpec.Jsii$DefaultgetRestartPolicy in interface IPodTemplate.Jsii$Default@Stability(value=Stable) @Nullable public final IServiceAccount getServiceAccount()
getServiceAccount in interface IPodSpecgetServiceAccount in interface IPodSpec.Jsii$DefaultgetServiceAccount in interface IPodTemplate.Jsii$Default@Stability(value=Stable) @NotNull public final org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
getPodMetadata in interface IPodTemplategetPodMetadata in interface IPodTemplate.Jsii$Default@Stability(value=Stable) @NotNull public final Container addContainer(@NotNull ContainerProps container)
addContainer in interface IPodSpecaddContainer in interface IPodSpec.Jsii$DefaultaddContainer in interface IPodTemplate.Jsii$Defaultcontainer - The container. This parameter is required.@Stability(value=Stable)
public final void addVolume(@NotNull
Volume volume)
addVolume in interface IPodSpecaddVolume in interface IPodSpec.Jsii$DefaultaddVolume in interface IPodTemplate.Jsii$Defaultvolume - The volume. This parameter is required.Copyright © 2021. All rights reserved.