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

com.aliyun.ros.cdk.sae.SlbBindingProps Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.5.0
Show newest version
package com.aliyun.ros.cdk.sae;

/**
 * Properties for defining a SlbBinding.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-slbbinding */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2023-12-26T06:30:17.955Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.sae.$Module.class, fqn = "@alicloud/ros-cdk-sae.SlbBindingProps") @software.amazon.jsii.Jsii.Proxy(SlbBindingProps.Jsii$Proxy.class) public interface SlbBindingProps extends software.amazon.jsii.JsiiSerializable { /** * Property appId: Successful application deployment target ID. */ @org.jetbrains.annotations.NotNull java.lang.Object getAppId(); /** * Property internet: Binding public SLB. *

* For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInternet() { return null; } /** * Property internetSlbId: Use SLB purchased specified, currently only supports non-shared examples. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInternetSlbId() { return null; } /** * Property intranet: Bind private SLB. *

* For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. */ default @org.jetbrains.annotations.Nullable java.lang.Object getIntranet() { return null; } /** * Property intranetSlbId: Use SLB purchased specified, currently only supports non-shared examples. */ default @org.jetbrains.annotations.Nullable java.lang.Object getIntranetSlbId() { return null; } /** * @return a {@link Builder} of {@link SlbBindingProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link SlbBindingProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object appId; java.lang.Object internet; java.lang.Object internetSlbId; java.lang.Object intranet; java.lang.Object intranetSlbId; /** * Sets the value of {@link SlbBindingProps#getAppId} * @param appId Property appId: Successful application deployment target ID. This parameter is required. * @return {@code this} */ public Builder appId(java.lang.String appId) { this.appId = appId; return this; } /** * Sets the value of {@link SlbBindingProps#getAppId} * @param appId Property appId: Successful application deployment target ID. This parameter is required. * @return {@code this} */ public Builder appId(com.aliyun.ros.cdk.core.IResolvable appId) { this.appId = appId; return this; } /** * Sets the value of {@link SlbBindingProps#getInternet} * @param internet Property internet: Binding public SLB. * For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. * @return {@code this} */ public Builder internet(java.lang.String internet) { this.internet = internet; return this; } /** * Sets the value of {@link SlbBindingProps#getInternet} * @param internet Property internet: Binding public SLB. * For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. * @return {@code this} */ public Builder internet(com.aliyun.ros.cdk.core.IResolvable internet) { this.internet = internet; return this; } /** * Sets the value of {@link SlbBindingProps#getInternetSlbId} * @param internetSlbId Property internetSlbId: Use SLB purchased specified, currently only supports non-shared examples. * @return {@code this} */ public Builder internetSlbId(java.lang.String internetSlbId) { this.internetSlbId = internetSlbId; return this; } /** * Sets the value of {@link SlbBindingProps#getInternetSlbId} * @param internetSlbId Property internetSlbId: Use SLB purchased specified, currently only supports non-shared examples. * @return {@code this} */ public Builder internetSlbId(com.aliyun.ros.cdk.core.IResolvable internetSlbId) { this.internetSlbId = internetSlbId; return this; } /** * Sets the value of {@link SlbBindingProps#getIntranet} * @param intranet Property intranet: Bind private SLB. * For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. * @return {@code this} */ public Builder intranet(java.lang.String intranet) { this.intranet = intranet; return this; } /** * Sets the value of {@link SlbBindingProps#getIntranet} * @param intranet Property intranet: Bind private SLB. * For example: [{ "port": 80, "targetPort": 8080, "protocol": "TCP"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored. * @return {@code this} */ public Builder intranet(com.aliyun.ros.cdk.core.IResolvable intranet) { this.intranet = intranet; return this; } /** * Sets the value of {@link SlbBindingProps#getIntranetSlbId} * @param intranetSlbId Property intranetSlbId: Use SLB purchased specified, currently only supports non-shared examples. * @return {@code this} */ public Builder intranetSlbId(java.lang.String intranetSlbId) { this.intranetSlbId = intranetSlbId; return this; } /** * Sets the value of {@link SlbBindingProps#getIntranetSlbId} * @param intranetSlbId Property intranetSlbId: Use SLB purchased specified, currently only supports non-shared examples. * @return {@code this} */ public Builder intranetSlbId(com.aliyun.ros.cdk.core.IResolvable intranetSlbId) { this.intranetSlbId = intranetSlbId; return this; } /** * Builds the configured instance. * @return a new instance of {@link SlbBindingProps} * @throws NullPointerException if any required attribute was not provided */ @Override public SlbBindingProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SlbBindingProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SlbBindingProps { private final java.lang.Object appId; private final java.lang.Object internet; private final java.lang.Object internetSlbId; private final java.lang.Object intranet; private final java.lang.Object intranetSlbId; /** * 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.appId = software.amazon.jsii.Kernel.get(this, "appId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.internet = software.amazon.jsii.Kernel.get(this, "internet", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.internetSlbId = software.amazon.jsii.Kernel.get(this, "internetSlbId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.intranet = software.amazon.jsii.Kernel.get(this, "intranet", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.intranetSlbId = software.amazon.jsii.Kernel.get(this, "intranetSlbId", 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.appId = java.util.Objects.requireNonNull(builder.appId, "appId is required"); this.internet = builder.internet; this.internetSlbId = builder.internetSlbId; this.intranet = builder.intranet; this.intranetSlbId = builder.intranetSlbId; } @Override public final java.lang.Object getAppId() { return this.appId; } @Override public final java.lang.Object getInternet() { return this.internet; } @Override public final java.lang.Object getInternetSlbId() { return this.internetSlbId; } @Override public final java.lang.Object getIntranet() { return this.intranet; } @Override public final java.lang.Object getIntranetSlbId() { return this.intranetSlbId; } @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("appId", om.valueToTree(this.getAppId())); if (this.getInternet() != null) { data.set("internet", om.valueToTree(this.getInternet())); } if (this.getInternetSlbId() != null) { data.set("internetSlbId", om.valueToTree(this.getInternetSlbId())); } if (this.getIntranet() != null) { data.set("intranet", om.valueToTree(this.getIntranet())); } if (this.getIntranetSlbId() != null) { data.set("intranetSlbId", om.valueToTree(this.getIntranetSlbId())); } 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.SlbBindingProps")); 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; SlbBindingProps.Jsii$Proxy that = (SlbBindingProps.Jsii$Proxy) o; if (!appId.equals(that.appId)) return false; if (this.internet != null ? !this.internet.equals(that.internet) : that.internet != null) return false; if (this.internetSlbId != null ? !this.internetSlbId.equals(that.internetSlbId) : that.internetSlbId != null) return false; if (this.intranet != null ? !this.intranet.equals(that.intranet) : that.intranet != null) return false; return this.intranetSlbId != null ? this.intranetSlbId.equals(that.intranetSlbId) : that.intranetSlbId == null; } @Override public final int hashCode() { int result = this.appId.hashCode(); result = 31 * result + (this.internet != null ? this.internet.hashCode() : 0); result = 31 * result + (this.internetSlbId != null ? this.internetSlbId.hashCode() : 0); result = 31 * result + (this.intranet != null ? this.intranet.hashCode() : 0); result = 31 * result + (this.intranetSlbId != null ? this.intranetSlbId.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy