Package org.cdk8s.plus20
Class IPodTemplate.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.IPodTemplate.Jsii$Proxy
-
- All Implemented Interfaces:
IPodSpec,IPodSpec.Jsii$Default,IPodTemplate,IPodTemplate.Jsii$Default,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- IPodTemplate
@Internal public static final class IPodTemplate.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IPodTemplate.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IPodSpec
IPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IPodTemplate
IPodTemplate.Jsii$Default, IPodTemplate.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContaineraddContainer(ContainerProps container)Add a container to the pod.ContaineraddInitContainer(ContainerProps container)Add an init container to the pod.voidaddVolume(Volume volume)Add a volume to the pod.List<Container>getContainers()The containers belonging to the pod.List<HostAlias>getHostAliases()An optional list of hosts and IPs that will be injected into the pod's hosts file if specified.List<Container>getInitContainers()The init containers belonging to the pod.org.cdk8s.ApiObjectMetadataDefinitiongetPodMetadata()Provides read/write access to the underlying pod metadata of the resource.RestartPolicygetRestartPolicy()Restart policy for all containers within the pod.IServiceAccountgetServiceAccount()The service account used to run this pod.List<Volume>getVolumes()The volumes associated with this pod.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
getContainers
@Stability(Stable) @NotNull public final List<Container> getContainers()
The containers belonging to the pod.Use
addContainerto add containers.- Specified by:
getContainersin interfaceIPodSpec- Specified by:
getContainersin interfaceIPodSpec.Jsii$Default- Specified by:
getContainersin interfaceIPodTemplate.Jsii$Default
-
getHostAliases
@Stability(Stable) @NotNull public final List<HostAlias> getHostAliases()
An optional list of hosts and IPs that will be injected into the pod's hosts file if specified.This is only valid for non-hostNetwork pods.
- Specified by:
getHostAliasesin interfaceIPodSpec- Specified by:
getHostAliasesin interfaceIPodSpec.Jsii$Default- Specified by:
getHostAliasesin interfaceIPodTemplate.Jsii$Default
-
getInitContainers
@Stability(Stable) @NotNull public final List<Container> getInitContainers()
The init containers belonging to the pod.Use
addInitContainerto add init containers.- Specified by:
getInitContainersin interfaceIPodSpec- Specified by:
getInitContainersin interfaceIPodSpec.Jsii$Default- Specified by:
getInitContainersin interfaceIPodTemplate.Jsii$Default
-
getVolumes
@Stability(Stable) @NotNull public final List<Volume> getVolumes()
The volumes associated with this pod.Use
addVolumeto add volumes.- Specified by:
getVolumesin interfaceIPodSpec- Specified by:
getVolumesin interfaceIPodSpec.Jsii$Default- Specified by:
getVolumesin interfaceIPodTemplate.Jsii$Default
-
getRestartPolicy
@Stability(Stable) @Nullable public final RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.- Specified by:
getRestartPolicyin interfaceIPodSpec- Specified by:
getRestartPolicyin interfaceIPodSpec.Jsii$Default- Specified by:
getRestartPolicyin interfaceIPodTemplate.Jsii$Default
-
getServiceAccount
@Stability(Stable) @Nullable public final IServiceAccount getServiceAccount()
The service account used to run this pod.- Specified by:
getServiceAccountin interfaceIPodSpec- Specified by:
getServiceAccountin interfaceIPodSpec.Jsii$Default- Specified by:
getServiceAccountin interfaceIPodTemplate.Jsii$Default
-
getPodMetadata
@Stability(Stable) @NotNull public final org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
Provides read/write access to the underlying pod metadata of the resource.- Specified by:
getPodMetadatain interfaceIPodTemplate- Specified by:
getPodMetadatain interfaceIPodTemplate.Jsii$Default
-
addContainer
@Stability(Stable) @NotNull public final Container addContainer(@NotNull ContainerProps container)
Add a container to the pod.- Specified by:
addContainerin interfaceIPodSpec- Specified by:
addContainerin interfaceIPodSpec.Jsii$Default- Specified by:
addContainerin interfaceIPodTemplate.Jsii$Default- Parameters:
container- The container. This parameter is required.
-
addInitContainer
@Stability(Stable) @NotNull public final Container addInitContainer(@NotNull ContainerProps container)
Add an init container to the pod.- Specified by:
addInitContainerin interfaceIPodSpec- Specified by:
addInitContainerin interfaceIPodSpec.Jsii$Default- Specified by:
addInitContainerin interfaceIPodTemplate.Jsii$Default- Parameters:
container- The container. This parameter is required.
-
addVolume
@Stability(Stable) public final void addVolume(@NotNull Volume volume)Add a volume to the pod.- Specified by:
addVolumein interfaceIPodSpec- Specified by:
addVolumein interfaceIPodSpec.Jsii$Default- Specified by:
addVolumein interfaceIPodTemplate.Jsii$Default- Parameters:
volume- The volume. This parameter is required.
-
-