Package org.cdk8s.plus24
Class AbstractPod
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Resource
-
- org.cdk8s.plus24.AbstractPod
-
- All Implemented Interfaces:
IApiEndpoint,IApiResource,INetworkPolicyPeer,IPodSelector,IResource,ISubject,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T02:54:19.137Z") @Stability(Stable) public abstract class AbstractPod extends Resource implements IPodSelector, INetworkPolicyPeer, ISubject
-
-
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.plus24.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IApiResource
IApiResource.Jsii$Default
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IPodSelector
IPodSelector.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IResource
IResource.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.ISubject
ISubject.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedAbstractPod(software.amazon.jsii.JsiiObjectRef objRef)protectedAbstractPod(software.constructs.Construct scope, String id)protectedAbstractPod(software.constructs.Construct scope, String id, AbstractPodProps props)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ContaineraddContainer(ContainerProps cont)voidaddHostAlias(HostAlias hostAlias)ContaineraddInitContainer(ContainerProps cont)voidaddVolume(Volume vol)BooleangetAutomountServiceAccountToken()List<Container>getContainers()PodDnsgetDns()DockerConfigSecretgetDockerRegistryAuth()List<HostAlias>getHostAliases()List<Container>getInitContainers()abstract org.cdk8s.ApiObjectMetadataDefinitiongetPodMetadata()RestartPolicygetRestartPolicy()PodSecurityContextgetSecurityContext()IServiceAccountgetServiceAccount()List<Volume>getVolumes()NetworkPolicyPeerConfigtoNetworkPolicyPeerConfig()Return the configuration of this peer.IPodSelectortoPodSelector()Convert the peer into a pod selector, if possible.PodSelectorConfigtoPodSelectorConfig()Return the configuration of this selector.SubjectConfigurationtoSubjectConfiguration()Return the subject configuration.-
Methods inherited from class org.cdk8s.plus24.Resource
asApiResource, asNonApiResource, getApiGroup, getApiObject, getApiVersion, getKind, getMetadata, getName, getPermissions, getResourceName, getResourceType
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
AbstractPod
protected AbstractPod(software.amazon.jsii.JsiiObjectRef objRef)
-
AbstractPod
protected AbstractPod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
AbstractPod
@Stability(Stable) protected AbstractPod(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable AbstractPodProps props)- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
AbstractPod
@Stability(Stable) protected AbstractPod(@NotNull software.constructs.Construct scope, @NotNull String id)- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Detail
-
addContainer
@Stability(Stable) @NotNull public Container addContainer(@NotNull ContainerProps cont)
- Parameters:
cont- This parameter is required.
-
addHostAlias
@Stability(Stable) public void addHostAlias(@NotNull HostAlias hostAlias)- Parameters:
hostAlias- This parameter is required.
-
addInitContainer
@Stability(Stable) @NotNull public Container addInitContainer(@NotNull ContainerProps cont)
- Parameters:
cont- This parameter is required.
-
addVolume
@Stability(Stable) public void addVolume(@NotNull Volume vol)- Parameters:
vol- This parameter is required.
-
toNetworkPolicyPeerConfig
@Stability(Stable) @NotNull public NetworkPolicyPeerConfig toNetworkPolicyPeerConfig()
Return the configuration of this peer.- Specified by:
toNetworkPolicyPeerConfigin interfaceINetworkPolicyPeer- See Also:
- INetworkPolicyPeer.toNetworkPolicyPeerConfig()
-
toPodSelector
@Stability(Stable) @Nullable public IPodSelector toPodSelector()
Convert the peer into a pod selector, if possible.- Specified by:
toPodSelectorin interfaceINetworkPolicyPeer- See Also:
- INetworkPolicyPeer.toPodSelector()
-
toPodSelectorConfig
@Stability(Stable) @NotNull public PodSelectorConfig toPodSelectorConfig()
Return the configuration of this selector.- Specified by:
toPodSelectorConfigin interfaceIPodSelector- See Also:
- IPodSelector.toPodSelectorConfig()
-
toSubjectConfiguration
@Stability(Stable) @NotNull public SubjectConfiguration toSubjectConfiguration()
Return the subject configuration.- Specified by:
toSubjectConfigurationin interfaceISubject- See Also:
- ISubect.toSubjectConfiguration()
-
getAutomountServiceAccountToken
@Stability(Stable) @NotNull public Boolean getAutomountServiceAccountToken()
-
getDns
@Stability(Stable) @NotNull public PodDns getDns()
-
getPodMetadata
@Stability(Stable) @NotNull public abstract org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
-
getSecurityContext
@Stability(Stable) @NotNull public PodSecurityContext getSecurityContext()
-
getDockerRegistryAuth
@Stability(Stable) @Nullable public DockerConfigSecret getDockerRegistryAuth()
-
getRestartPolicy
@Stability(Stable) @Nullable public RestartPolicy getRestartPolicy()
-
getServiceAccount
@Stability(Stable) @Nullable public IServiceAccount getServiceAccount()
-
-