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

com.aliyun.ros.cdk.paidswapi.RosInstance Maven / Gradle / Ivy

package com.aliyun.ros.cdk.paidswapi;

/**
 * This class is a base encapsulation around the ROS resource type ALIYUN::PaiDswApi::Instance, which is used to create a Data Science Workshop (DSW) instance.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-10-18T08:56:32.217Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.paidswapi.$Module.class, fqn = "@alicloud/ros-cdk-paidswapi.RosInstance")
public class RosInstance extends com.aliyun.ros.cdk.core.RosResource {

    protected RosInstance(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected RosInstance(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.paidswapi.RosInstance.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * @param scope 
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public RosInstance(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.paidswapi.RosInstanceProps props, final @org.jetbrains.annotations.NotNull java.lang.Boolean enableResourcePropertyConstraint) { 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"), java.util.Objects.requireNonNull(enableResourcePropertyConstraint, "enableResourcePropertyConstraint is required") }); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The resource type name for this resource class. */ public final static java.lang.String ROS_RESOURCE_TYPE_NAME; /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrAccessibility() { return software.amazon.jsii.Kernel.get(this, "attrAccessibility", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrDatasets() { return software.amazon.jsii.Kernel.get(this, "attrDatasets", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrEcsSpec() { return software.amazon.jsii.Kernel.get(this, "attrEcsSpec", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrEnvironmentVariables() { return software.amazon.jsii.Kernel.get(this, "attrEnvironmentVariables", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrImageUrl() { return software.amazon.jsii.Kernel.get(this, "attrImageUrl", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceId() { return software.amazon.jsii.Kernel.get(this, "attrInstanceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceName() { return software.amazon.jsii.Kernel.get(this, "attrInstanceName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceUrl() { return software.amazon.jsii.Kernel.get(this, "attrInstanceUrl", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrJupyterlabUrl() { return software.amazon.jsii.Kernel.get(this, "attrJupyterlabUrl", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrLabels() { return software.amazon.jsii.Kernel.get(this, "attrLabels", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPaymentType() { return software.amazon.jsii.Kernel.get(this, "attrPaymentType", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrTerminalUrl() { return software.amazon.jsii.Kernel.get(this, "attrTerminalUrl", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrUserVpc() { return software.amazon.jsii.Kernel.get(this, "attrUserVpc", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrWebIdeUrl() { return software.amazon.jsii.Kernel.get(this, "attrWebIdeUrl", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrWorkspaceId() { return software.amazon.jsii.Kernel.get(this, "attrWorkspaceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map getRosProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "rosProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getEcsSpec() { return software.amazon.jsii.Kernel.get(this, "ecsSpec", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setEcsSpec(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "ecsSpec", java.util.Objects.requireNonNull(value, "ecsSpec is required")); } /** */ public void setEcsSpec(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ecsSpec", java.util.Objects.requireNonNull(value, "ecsSpec is required")); } public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() { return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } public void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getImageUrl() { return software.amazon.jsii.Kernel.get(this, "imageUrl", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setImageUrl(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "imageUrl", java.util.Objects.requireNonNull(value, "imageUrl is required")); } /** */ public void setImageUrl(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "imageUrl", java.util.Objects.requireNonNull(value, "imageUrl is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getInstanceName() { return software.amazon.jsii.Kernel.get(this, "instanceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceName", java.util.Objects.requireNonNull(value, "instanceName is required")); } /** */ public void setInstanceName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceName", java.util.Objects.requireNonNull(value, "instanceName is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getAccessibility() { return software.amazon.jsii.Kernel.get(this, "accessibility", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setAccessibility(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "accessibility", value); } /** */ public void setAccessibility(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "accessibility", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getDatasets() { return software.amazon.jsii.Kernel.get(this, "datasets", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDatasets(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "datasets", value); } /** */ public void setDatasets(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.paidswapi.RosInstance.DatasetsProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.paidswapi.RosInstance.DatasetsProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "datasets", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getEnvironmentVariables() { return software.amazon.jsii.Kernel.get(this, "environmentVariables", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setEnvironmentVariables(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "environmentVariables", value); } /** */ public void setEnvironmentVariables(final @org.jetbrains.annotations.Nullable java.util.Map value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { if (!(value.keySet().toArray()[0] instanceof String)) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".keySet()") .append(" to contain class String; received ") .append(value.keySet().toArray()[0].getClass()).toString()); } for (final java.util.Map.Entry __item_ac66f0: value.entrySet()) { final java.lang.Object __val_ac66f0 = __item_ac66f0.getValue(); } } software.amazon.jsii.Kernel.set(this, "environmentVariables", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getLabels() { return software.amazon.jsii.Kernel.get(this, "labels", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setLabels(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "labels", value); } /** */ public void setLabels(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.paidswapi.RosInstance.LabelsProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.paidswapi.RosInstance.LabelsProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "labels", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSaveImage() { return software.amazon.jsii.Kernel.get(this, "saveImage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSaveImage(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "saveImage", value); } /** */ public void setSaveImage(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "saveImage", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getUserVpc() { return software.amazon.jsii.Kernel.get(this, "userVpc", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setUserVpc(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "userVpc", value); } /** */ public void setUserVpc(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.paidswapi.RosInstance.UserVpcProperty value) { software.amazon.jsii.Kernel.set(this, "userVpc", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getWorkspaceId() { return software.amazon.jsii.Kernel.get(this, "workspaceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setWorkspaceId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "workspaceId", value); } /** */ public void setWorkspaceId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "workspaceId", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.paidswapi.$Module.class, fqn = "@alicloud/ros-cdk-paidswapi.RosInstance.DatasetsProperty") @software.amazon.jsii.Jsii.Proxy(DatasetsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface DatasetsProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDatasetId() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getMountPath() { return null; } /** * @return a {@link Builder} of {@link DatasetsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link DatasetsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object datasetId; java.lang.Object mountPath; /** * Sets the value of {@link DatasetsProperty#getDatasetId} * @param datasetId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder datasetId(java.lang.String datasetId) { this.datasetId = datasetId; return this; } /** * Sets the value of {@link DatasetsProperty#getDatasetId} * @param datasetId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder datasetId(com.aliyun.ros.cdk.core.IResolvable datasetId) { this.datasetId = datasetId; return this; } /** * Sets the value of {@link DatasetsProperty#getMountPath} * @param mountPath the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder mountPath(java.lang.String mountPath) { this.mountPath = mountPath; return this; } /** * Sets the value of {@link DatasetsProperty#getMountPath} * @param mountPath the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder mountPath(com.aliyun.ros.cdk.core.IResolvable mountPath) { this.mountPath = mountPath; return this; } /** * Builds the configured instance. * @return a new instance of {@link DatasetsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public DatasetsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link DatasetsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DatasetsProperty { private final java.lang.Object datasetId; private final java.lang.Object mountPath; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.datasetId = software.amazon.jsii.Kernel.get(this, "datasetId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.mountPath = software.amazon.jsii.Kernel.get(this, "mountPath", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.datasetId = builder.datasetId; this.mountPath = builder.mountPath; } @Override public final java.lang.Object getDatasetId() { return this.datasetId; } @Override public final java.lang.Object getMountPath() { return this.mountPath; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getDatasetId() != null) { data.set("datasetId", om.valueToTree(this.getDatasetId())); } if (this.getMountPath() != null) { data.set("mountPath", om.valueToTree(this.getMountPath())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-paidswapi.RosInstance.DatasetsProperty")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DatasetsProperty.Jsii$Proxy that = (DatasetsProperty.Jsii$Proxy) o; if (this.datasetId != null ? !this.datasetId.equals(that.datasetId) : that.datasetId != null) return false; return this.mountPath != null ? this.mountPath.equals(that.mountPath) : that.mountPath == null; } @Override public final int hashCode() { int result = this.datasetId != null ? this.datasetId.hashCode() : 0; result = 31 * result + (this.mountPath != null ? this.mountPath.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.paidswapi.$Module.class, fqn = "@alicloud/ros-cdk-paidswapi.RosInstance.LabelsProperty") @software.amazon.jsii.Jsii.Proxy(LabelsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface LabelsProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getKey() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getValue() { return null; } /** * @return a {@link Builder} of {@link LabelsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link LabelsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object key; java.lang.Object value; /** * Sets the value of {@link LabelsProperty#getKey} * @param key the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder key(java.lang.String key) { this.key = key; return this; } /** * Sets the value of {@link LabelsProperty#getKey} * @param key the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder key(com.aliyun.ros.cdk.core.IResolvable key) { this.key = key; return this; } /** * Sets the value of {@link LabelsProperty#getValue} * @param value the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder value(java.lang.String value) { this.value = value; return this; } /** * Sets the value of {@link LabelsProperty#getValue} * @param value the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder value(com.aliyun.ros.cdk.core.IResolvable value) { this.value = value; return this; } /** * Builds the configured instance. * @return a new instance of {@link LabelsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public LabelsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link LabelsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LabelsProperty { private final java.lang.Object key; private final java.lang.Object value; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.key = software.amazon.jsii.Kernel.get(this, "key", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.value = software.amazon.jsii.Kernel.get(this, "value", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.key = builder.key; this.value = builder.value; } @Override public final java.lang.Object getKey() { return this.key; } @Override public final java.lang.Object getValue() { return this.value; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getKey() != null) { data.set("key", om.valueToTree(this.getKey())); } if (this.getValue() != null) { data.set("value", om.valueToTree(this.getValue())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-paidswapi.RosInstance.LabelsProperty")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LabelsProperty.Jsii$Proxy that = (LabelsProperty.Jsii$Proxy) o; if (this.key != null ? !this.key.equals(that.key) : that.key != null) return false; return this.value != null ? this.value.equals(that.value) : that.value == null; } @Override public final int hashCode() { int result = this.key != null ? this.key.hashCode() : 0; result = 31 * result + (this.value != null ? this.value.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.paidswapi.$Module.class, fqn = "@alicloud/ros-cdk-paidswapi.RosInstance.UserVpcProperty") @software.amazon.jsii.Jsii.Proxy(UserVpcProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface UserVpcProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getSecurityGroupId() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getVpcId() { return null; } /** * @return a {@link Builder} of {@link UserVpcProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link UserVpcProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object securityGroupId; java.lang.Object vpcId; /** * Sets the value of {@link UserVpcProperty#getSecurityGroupId} * @param securityGroupId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder securityGroupId(java.lang.String securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** * Sets the value of {@link UserVpcProperty#getSecurityGroupId} * @param securityGroupId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder securityGroupId(com.aliyun.ros.cdk.core.IResolvable securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** * Sets the value of {@link UserVpcProperty#getVpcId} * @param vpcId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder vpcId(java.lang.String vpcId) { this.vpcId = vpcId; return this; } /** * Sets the value of {@link UserVpcProperty#getVpcId} * @param vpcId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId) { this.vpcId = vpcId; return this; } /** * Builds the configured instance. * @return a new instance of {@link UserVpcProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public UserVpcProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link UserVpcProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements UserVpcProperty { private final java.lang.Object securityGroupId; private final java.lang.Object vpcId; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.securityGroupId = software.amazon.jsii.Kernel.get(this, "securityGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.vpcId = software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.securityGroupId = builder.securityGroupId; this.vpcId = builder.vpcId; } @Override public final java.lang.Object getSecurityGroupId() { return this.securityGroupId; } @Override public final java.lang.Object getVpcId() { return this.vpcId; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getSecurityGroupId() != null) { data.set("securityGroupId", om.valueToTree(this.getSecurityGroupId())); } if (this.getVpcId() != null) { data.set("vpcId", om.valueToTree(this.getVpcId())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-paidswapi.RosInstance.UserVpcProperty")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; UserVpcProperty.Jsii$Proxy that = (UserVpcProperty.Jsii$Proxy) o; if (this.securityGroupId != null ? !this.securityGroupId.equals(that.securityGroupId) : that.securityGroupId != null) return false; return this.vpcId != null ? this.vpcId.equals(that.vpcId) : that.vpcId == null; } @Override public final int hashCode() { int result = this.securityGroupId != null ? this.securityGroupId.hashCode() : 0; result = 31 * result + (this.vpcId != null ? this.vpcId.hashCode() : 0); return result; } } } /** * A fluent builder for {@link com.aliyun.ros.cdk.paidswapi.RosInstance}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { return new Builder(scope, id, enableResourcePropertyConstraint); } private final com.aliyun.ros.cdk.core.Construct scope; private final java.lang.String id; private final java.lang.Boolean enableResourcePropertyConstraint; private final com.aliyun.ros.cdk.paidswapi.RosInstanceProps.Builder props; private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { this.scope = scope; this.id = id; this.enableResourcePropertyConstraint = enableResourcePropertyConstraint; this.props = new com.aliyun.ros.cdk.paidswapi.RosInstanceProps.Builder(); } /** * @return {@code this} * @param ecsSpec This parameter is required. */ public Builder ecsSpec(final java.lang.String ecsSpec) { this.props.ecsSpec(ecsSpec); return this; } /** * @return {@code this} * @param ecsSpec This parameter is required. */ public Builder ecsSpec(final com.aliyun.ros.cdk.core.IResolvable ecsSpec) { this.props.ecsSpec(ecsSpec); return this; } /** * @return {@code this} * @param imageUrl This parameter is required. */ public Builder imageUrl(final java.lang.String imageUrl) { this.props.imageUrl(imageUrl); return this; } /** * @return {@code this} * @param imageUrl This parameter is required. */ public Builder imageUrl(final com.aliyun.ros.cdk.core.IResolvable imageUrl) { this.props.imageUrl(imageUrl); return this; } /** * @return {@code this} * @param instanceName This parameter is required. */ public Builder instanceName(final java.lang.String instanceName) { this.props.instanceName(instanceName); return this; } /** * @return {@code this} * @param instanceName This parameter is required. */ public Builder instanceName(final com.aliyun.ros.cdk.core.IResolvable instanceName) { this.props.instanceName(instanceName); return this; } /** * @return {@code this} * @param accessibility This parameter is required. */ public Builder accessibility(final java.lang.String accessibility) { this.props.accessibility(accessibility); return this; } /** * @return {@code this} * @param accessibility This parameter is required. */ public Builder accessibility(final com.aliyun.ros.cdk.core.IResolvable accessibility) { this.props.accessibility(accessibility); return this; } /** * @return {@code this} * @param datasets This parameter is required. */ public Builder datasets(final com.aliyun.ros.cdk.core.IResolvable datasets) { this.props.datasets(datasets); return this; } /** * @return {@code this} * @param datasets This parameter is required. */ public Builder datasets(final java.util.List datasets) { this.props.datasets(datasets); return this; } /** * @return {@code this} * @param environmentVariables This parameter is required. */ public Builder environmentVariables(final com.aliyun.ros.cdk.core.IResolvable environmentVariables) { this.props.environmentVariables(environmentVariables); return this; } /** * @return {@code this} * @param environmentVariables This parameter is required. */ public Builder environmentVariables(final java.util.Map environmentVariables) { this.props.environmentVariables(environmentVariables); return this; } /** * @return {@code this} * @param labels This parameter is required. */ public Builder labels(final com.aliyun.ros.cdk.core.IResolvable labels) { this.props.labels(labels); return this; } /** * @return {@code this} * @param labels This parameter is required. */ public Builder labels(final java.util.List labels) { this.props.labels(labels); return this; } /** * @return {@code this} * @param saveImage This parameter is required. */ public Builder saveImage(final java.lang.Boolean saveImage) { this.props.saveImage(saveImage); return this; } /** * @return {@code this} * @param saveImage This parameter is required. */ public Builder saveImage(final com.aliyun.ros.cdk.core.IResolvable saveImage) { this.props.saveImage(saveImage); return this; } /** * @return {@code this} * @param userVpc This parameter is required. */ public Builder userVpc(final com.aliyun.ros.cdk.core.IResolvable userVpc) { this.props.userVpc(userVpc); return this; } /** * @return {@code this} * @param userVpc This parameter is required. */ public Builder userVpc(final com.aliyun.ros.cdk.paidswapi.RosInstance.UserVpcProperty userVpc) { this.props.userVpc(userVpc); return this; } /** * @return {@code this} * @param workspaceId This parameter is required. */ public Builder workspaceId(final java.lang.String workspaceId) { this.props.workspaceId(workspaceId); return this; } /** * @return {@code this} * @param workspaceId This parameter is required. */ public Builder workspaceId(final com.aliyun.ros.cdk.core.IResolvable workspaceId) { this.props.workspaceId(workspaceId); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.paidswapi.RosInstance}. */ @Override public com.aliyun.ros.cdk.paidswapi.RosInstance build() { return new com.aliyun.ros.cdk.paidswapi.RosInstance( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy