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

com.aliyun.ros.cdk.maxcompute.RosProjectProps 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.maxcompute;

/**
 * Properties for defining a RosProject.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-maxcompute-project */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:09.252Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk-maxcompute.RosProjectProps") @software.amazon.jsii.Jsii.Proxy(RosProjectProps.Jsii$Proxy.class) public interface RosProjectProps extends software.amazon.jsii.JsiiSerializable { /** */ @org.jetbrains.annotations.NotNull java.lang.Object getName(); /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getChargeType() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getComment() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDefaultQuota() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getIpWhiteList() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getProperties() { return null; } /** * @return a {@link Builder} of {@link RosProjectProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link RosProjectProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object name; java.lang.Object chargeType; java.lang.Object comment; java.lang.Object defaultQuota; java.lang.Object ipWhiteList; java.lang.Object properties; /** * Sets the value of {@link RosProjectProps#getName} * @param name the value to be set. This parameter is required. * @return {@code this} */ public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link RosProjectProps#getName} * @param name the value to be set. 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 RosProjectProps#getChargeType} * @param chargeType the value to be set. * @return {@code this} */ public Builder chargeType(java.lang.String chargeType) { this.chargeType = chargeType; return this; } /** * Sets the value of {@link RosProjectProps#getChargeType} * @param chargeType the value to be set. * @return {@code this} */ public Builder chargeType(com.aliyun.ros.cdk.core.IResolvable chargeType) { this.chargeType = chargeType; return this; } /** * Sets the value of {@link RosProjectProps#getComment} * @param comment the value to be set. * @return {@code this} */ public Builder comment(java.lang.String comment) { this.comment = comment; return this; } /** * Sets the value of {@link RosProjectProps#getComment} * @param comment the value to be set. * @return {@code this} */ public Builder comment(com.aliyun.ros.cdk.core.IResolvable comment) { this.comment = comment; return this; } /** * Sets the value of {@link RosProjectProps#getDefaultQuota} * @param defaultQuota the value to be set. * @return {@code this} */ public Builder defaultQuota(java.lang.String defaultQuota) { this.defaultQuota = defaultQuota; return this; } /** * Sets the value of {@link RosProjectProps#getDefaultQuota} * @param defaultQuota the value to be set. * @return {@code this} */ public Builder defaultQuota(com.aliyun.ros.cdk.core.IResolvable defaultQuota) { this.defaultQuota = defaultQuota; return this; } /** * Sets the value of {@link RosProjectProps#getIpWhiteList} * @param ipWhiteList the value to be set. * @return {@code this} */ public Builder ipWhiteList(com.aliyun.ros.cdk.core.IResolvable ipWhiteList) { this.ipWhiteList = ipWhiteList; return this; } /** * Sets the value of {@link RosProjectProps#getIpWhiteList} * @param ipWhiteList the value to be set. * @return {@code this} */ public Builder ipWhiteList(com.aliyun.ros.cdk.maxcompute.RosProject.IpWhiteListProperty ipWhiteList) { this.ipWhiteList = ipWhiteList; return this; } /** * Sets the value of {@link RosProjectProps#getProperties} * @param properties the value to be set. * @return {@code this} */ public Builder properties(com.aliyun.ros.cdk.core.IResolvable properties) { this.properties = properties; return this; } /** * Sets the value of {@link RosProjectProps#getProperties} * @param properties the value to be set. * @return {@code this} */ public Builder properties(com.aliyun.ros.cdk.maxcompute.RosProject.PropertiesProperty properties) { this.properties = properties; return this; } /** * Builds the configured instance. * @return a new instance of {@link RosProjectProps} * @throws NullPointerException if any required attribute was not provided */ @Override public RosProjectProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link RosProjectProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosProjectProps { private final java.lang.Object name; private final java.lang.Object chargeType; private final java.lang.Object comment; private final java.lang.Object defaultQuota; private final java.lang.Object ipWhiteList; private final java.lang.Object properties; /** * 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.chargeType = software.amazon.jsii.Kernel.get(this, "chargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.comment = software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.defaultQuota = software.amazon.jsii.Kernel.get(this, "defaultQuota", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.ipWhiteList = software.amazon.jsii.Kernel.get(this, "ipWhiteList", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.properties = software.amazon.jsii.Kernel.get(this, "properties", 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.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.chargeType = builder.chargeType; this.comment = builder.comment; this.defaultQuota = builder.defaultQuota; this.ipWhiteList = builder.ipWhiteList; this.properties = builder.properties; } @Override public final java.lang.Object getName() { return this.name; } @Override public final java.lang.Object getChargeType() { return this.chargeType; } @Override public final java.lang.Object getComment() { return this.comment; } @Override public final java.lang.Object getDefaultQuota() { return this.defaultQuota; } @Override public final java.lang.Object getIpWhiteList() { return this.ipWhiteList; } @Override public final java.lang.Object getProperties() { return this.properties; } @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("name", om.valueToTree(this.getName())); if (this.getChargeType() != null) { data.set("chargeType", om.valueToTree(this.getChargeType())); } if (this.getComment() != null) { data.set("comment", om.valueToTree(this.getComment())); } if (this.getDefaultQuota() != null) { data.set("defaultQuota", om.valueToTree(this.getDefaultQuota())); } if (this.getIpWhiteList() != null) { data.set("ipWhiteList", om.valueToTree(this.getIpWhiteList())); } if (this.getProperties() != null) { data.set("properties", om.valueToTree(this.getProperties())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-maxcompute.RosProjectProps")); 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; RosProjectProps.Jsii$Proxy that = (RosProjectProps.Jsii$Proxy) o; if (!name.equals(that.name)) return false; if (this.chargeType != null ? !this.chargeType.equals(that.chargeType) : that.chargeType != null) return false; if (this.comment != null ? !this.comment.equals(that.comment) : that.comment != null) return false; if (this.defaultQuota != null ? !this.defaultQuota.equals(that.defaultQuota) : that.defaultQuota != null) return false; if (this.ipWhiteList != null ? !this.ipWhiteList.equals(that.ipWhiteList) : that.ipWhiteList != null) return false; return this.properties != null ? this.properties.equals(that.properties) : that.properties == null; } @Override public final int hashCode() { int result = this.name.hashCode(); result = 31 * result + (this.chargeType != null ? this.chargeType.hashCode() : 0); result = 31 * result + (this.comment != null ? this.comment.hashCode() : 0); result = 31 * result + (this.defaultQuota != null ? this.defaultQuota.hashCode() : 0); result = 31 * result + (this.ipWhiteList != null ? this.ipWhiteList.hashCode() : 0); result = 31 * result + (this.properties != null ? this.properties.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy