Package org.cdk8s.plus22
Interface IPodTemplate.Jsii$Default
-
- All Superinterfaces:
IPodSpec,IPodSpec.Jsii$Default,IPodTemplate,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IPodTemplate.Jsii$Proxy
- Enclosing interface:
- IPodTemplate
@Internal public static interface IPodTemplate.Jsii$Default extends IPodTemplate, IPodSpec.Jsii$Default
Internal default implementation forIPodTemplate.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cdk8s.plus22.IPodSpec
IPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy
-
Nested classes/interfaces inherited from interface org.cdk8s.plus22.IPodTemplate
IPodTemplate.Jsii$Default, IPodTemplate.Jsii$Proxy
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ContaineraddContainer(ContainerProps container)Add a container to the pod.default voidaddVolume(Volume volume)Add a volume to the pod.default List<Container>getContainers()The containers belonging to the pod.default org.cdk8s.ApiObjectMetadataDefinitiongetPodMetadata()Provides read/write access to the underlying pod metadata of the resource.default RestartPolicygetRestartPolicy()Restart policy for all containers within the pod.default IServiceAccountgetServiceAccount()The service account used to run this pod.default List<Volume>getVolumes()The volumes associated with this pod.
-
-
-
Method Detail
-
getContainers
@Stability(Stable) @NotNull default List<Container> getContainers()
The containers belonging to the pod.Use
addContainerto add containers.- Specified by:
getContainersin interfaceIPodSpec- Specified by:
getContainersin interfaceIPodSpec.Jsii$Default
-
getVolumes
@Stability(Stable) @NotNull default List<Volume> getVolumes()
The volumes associated with this pod.Use
addVolumeto add volumes.- Specified by:
getVolumesin interfaceIPodSpec- Specified by:
getVolumesin interfaceIPodSpec.Jsii$Default
-
getRestartPolicy
@Stability(Stable) @Nullable default RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.- Specified by:
getRestartPolicyin interfaceIPodSpec- Specified by:
getRestartPolicyin interfaceIPodSpec.Jsii$Default
-
getServiceAccount
@Stability(Stable) @Nullable default IServiceAccount getServiceAccount()
The service account used to run this pod.- Specified by:
getServiceAccountin interfaceIPodSpec- Specified by:
getServiceAccountin interfaceIPodSpec.Jsii$Default
-
getPodMetadata
@Stability(Stable) @NotNull default org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
Provides read/write access to the underlying pod metadata of the resource.- Specified by:
getPodMetadatain interfaceIPodTemplate
-
addContainer
@Stability(Stable) @NotNull default Container addContainer(@NotNull ContainerProps container)
Add a container to the pod.- Specified by:
addContainerin interfaceIPodSpec- Specified by:
addContainerin interfaceIPodSpec.Jsii$Default- Parameters:
container- The container. This parameter is required.
-
addVolume
@Stability(Stable) default void addVolume(@NotNull Volume volume)Add a volume to the pod.- Specified by:
addVolumein interfaceIPodSpec- Specified by:
addVolumein interfaceIPodSpec.Jsii$Default- Parameters:
volume- The volume. This parameter is required.
-
-