Package org.cdk8s.plus22
Interface IPodSpec.Jsii$Default
-
- All Superinterfaces:
IPodSpec,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IPodTemplate.Jsii$Default
- All Known Implementing Classes:
IPodSpec.Jsii$Proxy,IPodTemplate.Jsii$Proxy
- Enclosing interface:
- IPodSpec
@Internal public static interface IPodSpec.Jsii$Default extends IPodSpec
Internal default implementation forIPodSpec.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cdk8s.plus22.IPodSpec
IPodSpec.Jsii$Default, IPodSpec.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 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
-
getVolumes
@Stability(Stable) @NotNull default List<Volume> getVolumes()
The volumes associated with this pod.Use
addVolumeto add volumes.- Specified by:
getVolumesin interfaceIPodSpec
-
getRestartPolicy
@Stability(Stable) @Nullable default RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.- Specified by:
getRestartPolicyin interfaceIPodSpec
-
getServiceAccount
@Stability(Stable) @Nullable default IServiceAccount getServiceAccount()
The service account used to run this pod.- Specified by:
getServiceAccountin interfaceIPodSpec
-
addContainer
@Stability(Stable) @NotNull default Container addContainer(@NotNull ContainerProps container)
Add a container to the pod.- Specified by:
addContainerin interfaceIPodSpec- Parameters:
container- The container. This parameter is required.
-
-