All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cdk8s.plus23.k8s.KubeControllerRevision Maven / Gradle / Ivy

package org.cdk8s.plus23.k8s;

/**
 * ControllerRevision implements an immutable snapshot of state data.
 * 

* Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @javax.annotation.Generated(value = "jsii-pacmak/1.75.0 (build 63bb957)", date = "2023-02-21T09:46:03.847Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = org.cdk8s.plus23.$Module.class, fqn = "cdk8s-plus-23.k8s.KubeControllerRevision") public class KubeControllerRevision extends org.cdk8s.ApiObject { protected KubeControllerRevision(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected KubeControllerRevision(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { GVK = software.amazon.jsii.JsiiObject.jsiiStaticGet(org.cdk8s.plus23.k8s.KubeControllerRevision.class, "GVK", software.amazon.jsii.NativeType.forClass(org.cdk8s.GroupVersionKind.class)); } /** * Defines a "io.k8s.api.apps.v1.ControllerRevision" API object. *

* @param scope the scope in which to define this object. This parameter is required. * @param id a scope-local name for the object. This parameter is required. * @param props initialization props. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public KubeControllerRevision(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull org.cdk8s.plus23.k8s.KubeControllerRevisionProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevision". *

* This can be used to inline resource manifests inside other objects (e.g. as templates). *

* @param props initialization props. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.lang.Object manifest(final @org.jetbrains.annotations.NotNull org.cdk8s.plus23.k8s.KubeControllerRevisionProps props) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus23.k8s.KubeControllerRevision.class, "manifest", software.amazon.jsii.NativeType.forClass(java.lang.Object.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** * Renders the object to Kubernetes JSON. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull java.lang.Object toJson() { return software.amazon.jsii.Kernel.call(this, "toJson", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevision". */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static org.cdk8s.GroupVersionKind GVK; /** * A fluent builder for {@link org.cdk8s.plus23.k8s.KubeControllerRevision}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope the scope in which to define this object. This parameter is required. * @param id a scope-local name for the object. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final org.cdk8s.plus23.k8s.KubeControllerRevisionProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new org.cdk8s.plus23.k8s.KubeControllerRevisionProps.Builder(); } /** * Revision indicates the revision of the state represented by Data. *

* @return {@code this} * @param revision Revision indicates the revision of the state represented by Data. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder revision(final java.lang.Number revision) { this.props.revision(revision); return this; } /** * Data is the serialized representation of the state. *

* @return {@code this} * @param data Data is the serialized representation of the state. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder data(final java.lang.Object data) { this.props.data(data); return this; } /** * Standard object's metadata. *

* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata *

* @return {@code this} * @param metadata Standard object's metadata. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder metadata(final org.cdk8s.plus23.k8s.ObjectMeta metadata) { this.props.metadata(metadata); return this; } /** * @returns a newly built instance of {@link org.cdk8s.plus23.k8s.KubeControllerRevision}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public org.cdk8s.plus23.k8s.KubeControllerRevision build() { return new org.cdk8s.plus23.k8s.KubeControllerRevision( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy