com.aliyun.ros.cdk.sae.datasource.RosApplicationsProps Maven / Gradle / Ivy
Show all versions of ros-cdk-sae Show documentation
package com.aliyun.ros.cdk.sae.datasource;
/**
* Properties for defining a RosApplications
.
*
* See https://www.alibabacloud.com/help/ros/developer-reference/datasource-sae-applications
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2023-12-26T06:30:17.959Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.sae.$Module.class, fqn = "@alicloud/ros-cdk-sae.datasource.RosApplicationsProps")
@software.amazon.jsii.Jsii.Proxy(RosApplicationsProps.Jsii$Proxy.class)
public interface RosApplicationsProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getAppName() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getFieldType() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getFieldValue() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getNamespaceId() {
return null;
}
/**
* @return a {@link Builder} of {@link RosApplicationsProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link RosApplicationsProps}
*/
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object appName;
java.lang.Object fieldType;
java.lang.Object fieldValue;
java.lang.Object namespaceId;
/**
* Sets the value of {@link RosApplicationsProps#getAppName}
* @param appName the value to be set.
* @return {@code this}
*/
public Builder appName(java.lang.String appName) {
this.appName = appName;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getAppName}
* @param appName the value to be set.
* @return {@code this}
*/
public Builder appName(com.aliyun.ros.cdk.core.IResolvable appName) {
this.appName = appName;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getFieldType}
* @param fieldType the value to be set.
* @return {@code this}
*/
public Builder fieldType(java.lang.String fieldType) {
this.fieldType = fieldType;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getFieldType}
* @param fieldType the value to be set.
* @return {@code this}
*/
public Builder fieldType(com.aliyun.ros.cdk.core.IResolvable fieldType) {
this.fieldType = fieldType;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getFieldValue}
* @param fieldValue the value to be set.
* @return {@code this}
*/
public Builder fieldValue(java.lang.String fieldValue) {
this.fieldValue = fieldValue;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getFieldValue}
* @param fieldValue the value to be set.
* @return {@code this}
*/
public Builder fieldValue(com.aliyun.ros.cdk.core.IResolvable fieldValue) {
this.fieldValue = fieldValue;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getNamespaceId}
* @param namespaceId the value to be set.
* @return {@code this}
*/
public Builder namespaceId(java.lang.String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* Sets the value of {@link RosApplicationsProps#getNamespaceId}
* @param namespaceId the value to be set.
* @return {@code this}
*/
public Builder namespaceId(com.aliyun.ros.cdk.core.IResolvable namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link RosApplicationsProps}
* @throws NullPointerException if any required attribute was not provided
*/
@Override
public RosApplicationsProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link RosApplicationsProps}
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosApplicationsProps {
private final java.lang.Object appName;
private final java.lang.Object fieldType;
private final java.lang.Object fieldValue;
private final java.lang.Object namespaceId;
/**
* 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.appName = software.amazon.jsii.Kernel.get(this, "appName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.fieldType = software.amazon.jsii.Kernel.get(this, "fieldType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.fieldValue = software.amazon.jsii.Kernel.get(this, "fieldValue", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.namespaceId = software.amazon.jsii.Kernel.get(this, "namespaceId", 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.appName = builder.appName;
this.fieldType = builder.fieldType;
this.fieldValue = builder.fieldValue;
this.namespaceId = builder.namespaceId;
}
@Override
public final java.lang.Object getAppName() {
return this.appName;
}
@Override
public final java.lang.Object getFieldType() {
return this.fieldType;
}
@Override
public final java.lang.Object getFieldValue() {
return this.fieldValue;
}
@Override
public final java.lang.Object getNamespaceId() {
return this.namespaceId;
}
@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.getAppName() != null) {
data.set("appName", om.valueToTree(this.getAppName()));
}
if (this.getFieldType() != null) {
data.set("fieldType", om.valueToTree(this.getFieldType()));
}
if (this.getFieldValue() != null) {
data.set("fieldValue", om.valueToTree(this.getFieldValue()));
}
if (this.getNamespaceId() != null) {
data.set("namespaceId", om.valueToTree(this.getNamespaceId()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-sae.datasource.RosApplicationsProps"));
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;
RosApplicationsProps.Jsii$Proxy that = (RosApplicationsProps.Jsii$Proxy) o;
if (this.appName != null ? !this.appName.equals(that.appName) : that.appName != null) return false;
if (this.fieldType != null ? !this.fieldType.equals(that.fieldType) : that.fieldType != null) return false;
if (this.fieldValue != null ? !this.fieldValue.equals(that.fieldValue) : that.fieldValue != null) return false;
return this.namespaceId != null ? this.namespaceId.equals(that.namespaceId) : that.namespaceId == null;
}
@Override
public final int hashCode() {
int result = this.appName != null ? this.appName.hashCode() : 0;
result = 31 * result + (this.fieldType != null ? this.fieldType.hashCode() : 0);
result = 31 * result + (this.fieldValue != null ? this.fieldValue.hashCode() : 0);
result = 31 * result + (this.namespaceId != null ? this.namespaceId.hashCode() : 0);
return result;
}
}
}