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

com.aliyun.ros.cdk.arms.AddonReleaseProps Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

The newest version!
package com.aliyun.ros.cdk.arms;

/**
 * Properties for defining a AddonRelease.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-arms-addonrelease */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:04.618Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.arms.$Module.class, fqn = "@alicloud/ros-cdk-arms.AddonReleaseProps") @software.amazon.jsii.Jsii.Proxy(AddonReleaseProps.Jsii$Proxy.class) public interface AddonReleaseProps extends software.amazon.jsii.JsiiSerializable { /** * Property addonVersion: The version of the add-on. */ @org.jetbrains.annotations.NotNull java.lang.Object getAddonVersion(); /** * Property environmentId: The id of the environment. */ @org.jetbrains.annotations.NotNull java.lang.Object getEnvironmentId(); /** * Property name: The name of the add-on. */ @org.jetbrains.annotations.NotNull java.lang.Object getName(); /** * Property releaseName: The name of the add-on after it is installed. *

* If you do not specify this parameter, a default rule name is generated. */ default @org.jetbrains.annotations.Nullable java.lang.Object getReleaseName() { return null; } /** * Property values: The metadata. */ default @org.jetbrains.annotations.Nullable java.lang.Object getValues() { return null; } /** * @return a {@link Builder} of {@link AddonReleaseProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link AddonReleaseProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object addonVersion; java.lang.Object environmentId; java.lang.Object name; java.lang.Object releaseName; java.lang.Object values; /** * Sets the value of {@link AddonReleaseProps#getAddonVersion} * @param addonVersion Property addonVersion: The version of the add-on. This parameter is required. * @return {@code this} */ public Builder addonVersion(java.lang.String addonVersion) { this.addonVersion = addonVersion; return this; } /** * Sets the value of {@link AddonReleaseProps#getAddonVersion} * @param addonVersion Property addonVersion: The version of the add-on. This parameter is required. * @return {@code this} */ public Builder addonVersion(com.aliyun.ros.cdk.core.IResolvable addonVersion) { this.addonVersion = addonVersion; return this; } /** * Sets the value of {@link AddonReleaseProps#getEnvironmentId} * @param environmentId Property environmentId: The id of the environment. This parameter is required. * @return {@code this} */ public Builder environmentId(java.lang.String environmentId) { this.environmentId = environmentId; return this; } /** * Sets the value of {@link AddonReleaseProps#getEnvironmentId} * @param environmentId Property environmentId: The id of the environment. This parameter is required. * @return {@code this} */ public Builder environmentId(com.aliyun.ros.cdk.core.IResolvable environmentId) { this.environmentId = environmentId; return this; } /** * Sets the value of {@link AddonReleaseProps#getName} * @param name Property name: The name of the add-on. This parameter is required. * @return {@code this} */ public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link AddonReleaseProps#getName} * @param name Property name: The name of the add-on. This parameter is required. * @return {@code this} */ public Builder name(com.aliyun.ros.cdk.core.IResolvable name) { this.name = name; return this; } /** * Sets the value of {@link AddonReleaseProps#getReleaseName} * @param releaseName Property releaseName: The name of the add-on after it is installed. * If you do not specify this parameter, a default rule name is generated. * @return {@code this} */ public Builder releaseName(java.lang.String releaseName) { this.releaseName = releaseName; return this; } /** * Sets the value of {@link AddonReleaseProps#getReleaseName} * @param releaseName Property releaseName: The name of the add-on after it is installed. * If you do not specify this parameter, a default rule name is generated. * @return {@code this} */ public Builder releaseName(com.aliyun.ros.cdk.core.IResolvable releaseName) { this.releaseName = releaseName; return this; } /** * Sets the value of {@link AddonReleaseProps#getValues} * @param values Property values: The metadata. * @return {@code this} */ public Builder values(com.aliyun.ros.cdk.core.IResolvable values) { this.values = values; return this; } /** * Sets the value of {@link AddonReleaseProps#getValues} * @param values Property values: The metadata. * @return {@code this} */ public Builder values(java.util.Map values) { this.values = values; return this; } /** * Builds the configured instance. * @return a new instance of {@link AddonReleaseProps} * @throws NullPointerException if any required attribute was not provided */ @Override public AddonReleaseProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link AddonReleaseProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AddonReleaseProps { private final java.lang.Object addonVersion; private final java.lang.Object environmentId; private final java.lang.Object name; private final java.lang.Object releaseName; private final java.lang.Object values; /** * 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.addonVersion = software.amazon.jsii.Kernel.get(this, "addonVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.environmentId = software.amazon.jsii.Kernel.get(this, "environmentId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.releaseName = software.amazon.jsii.Kernel.get(this, "releaseName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.values = software.amazon.jsii.Kernel.get(this, "values", 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.addonVersion = java.util.Objects.requireNonNull(builder.addonVersion, "addonVersion is required"); this.environmentId = java.util.Objects.requireNonNull(builder.environmentId, "environmentId is required"); this.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.releaseName = builder.releaseName; this.values = builder.values; } @Override public final java.lang.Object getAddonVersion() { return this.addonVersion; } @Override public final java.lang.Object getEnvironmentId() { return this.environmentId; } @Override public final java.lang.Object getName() { return this.name; } @Override public final java.lang.Object getReleaseName() { return this.releaseName; } @Override public final java.lang.Object getValues() { return this.values; } @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(); data.set("addonVersion", om.valueToTree(this.getAddonVersion())); data.set("environmentId", om.valueToTree(this.getEnvironmentId())); data.set("name", om.valueToTree(this.getName())); if (this.getReleaseName() != null) { data.set("releaseName", om.valueToTree(this.getReleaseName())); } if (this.getValues() != null) { data.set("values", om.valueToTree(this.getValues())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-arms.AddonReleaseProps")); 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; AddonReleaseProps.Jsii$Proxy that = (AddonReleaseProps.Jsii$Proxy) o; if (!addonVersion.equals(that.addonVersion)) return false; if (!environmentId.equals(that.environmentId)) return false; if (!name.equals(that.name)) return false; if (this.releaseName != null ? !this.releaseName.equals(that.releaseName) : that.releaseName != null) return false; return this.values != null ? this.values.equals(that.values) : that.values == null; } @Override public final int hashCode() { int result = this.addonVersion.hashCode(); result = 31 * result + (this.environmentId.hashCode()); result = 31 * result + (this.name.hashCode()); result = 31 * result + (this.releaseName != null ? this.releaseName.hashCode() : 0); result = 31 * result + (this.values != null ? this.values.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy