com.aliyun.ros.cdk.sae.RosApplicationProps Maven / Gradle / Ivy
package com.aliyun.ros.cdk.sae;
/**
* Properties for defining a RosApplication
.
*
* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-application
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2023-12-26T06:30:17.936Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.sae.$Module.class, fqn = "@alicloud/ros-cdk-sae.RosApplicationProps")
@software.amazon.jsii.Jsii.Proxy(RosApplicationProps.Jsii$Proxy.class)
public interface RosApplicationProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getAppName();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getCpu();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getMemory();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getNamespaceId();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getPackageType();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getReplicas();
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getAppDescription() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getCommand() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getCommandArgs() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getCustomHostAlias() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getDeploy() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getEdasContainerVersion() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getEnvs() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getImageUrl() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getJarStartArgs() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getJarStartOptions() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getJdk() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getLiveness() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getMountDesc() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getMountHost() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getNasId() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPackageUrl() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPackageVersion() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPostStart() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPreStop() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getReadiness() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getSecurityGroupId() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getSlsConfigs() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.util.List getTags() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getTimezone() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getVpcId() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getVSwitchId() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getWarStartOptions() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getWebContainer() {
return null;
}
/**
* @return a {@link Builder} of {@link RosApplicationProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link RosApplicationProps}
*/
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object appName;
java.lang.Object cpu;
java.lang.Object memory;
java.lang.Object namespaceId;
java.lang.Object packageType;
java.lang.Object replicas;
java.lang.Object appDescription;
java.lang.Object command;
java.lang.Object commandArgs;
java.lang.Object customHostAlias;
java.lang.Object deploy;
java.lang.Object edasContainerVersion;
java.lang.Object envs;
java.lang.Object imageUrl;
java.lang.Object jarStartArgs;
java.lang.Object jarStartOptions;
java.lang.Object jdk;
java.lang.Object liveness;
java.lang.Object mountDesc;
java.lang.Object mountHost;
java.lang.Object nasId;
java.lang.Object packageUrl;
java.lang.Object packageVersion;
java.lang.Object postStart;
java.lang.Object preStop;
java.lang.Object readiness;
java.lang.Object securityGroupId;
java.lang.Object slsConfigs;
java.util.List tags;
java.lang.Object timezone;
java.lang.Object vpcId;
java.lang.Object vSwitchId;
java.lang.Object warStartOptions;
java.lang.Object webContainer;
/**
* Sets the value of {@link RosApplicationProps#getAppName}
* @param appName the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder appName(java.lang.String appName) {
this.appName = appName;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getAppName}
* @param appName the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder appName(com.aliyun.ros.cdk.core.IResolvable appName) {
this.appName = appName;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCpu}
* @param cpu the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder cpu(java.lang.Number cpu) {
this.cpu = cpu;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCpu}
* @param cpu the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder cpu(com.aliyun.ros.cdk.core.IResolvable cpu) {
this.cpu = cpu;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMemory}
* @param memory the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder memory(java.lang.Number memory) {
this.memory = memory;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMemory}
* @param memory the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder memory(com.aliyun.ros.cdk.core.IResolvable memory) {
this.memory = memory;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getNamespaceId}
* @param namespaceId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder namespaceId(java.lang.String namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getNamespaceId}
* @param namespaceId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder namespaceId(com.aliyun.ros.cdk.core.IResolvable namespaceId) {
this.namespaceId = namespaceId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageType}
* @param packageType the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder packageType(java.lang.String packageType) {
this.packageType = packageType;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageType}
* @param packageType the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder packageType(com.aliyun.ros.cdk.core.IResolvable packageType) {
this.packageType = packageType;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getReplicas}
* @param replicas the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder replicas(java.lang.Number replicas) {
this.replicas = replicas;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getReplicas}
* @param replicas the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder replicas(com.aliyun.ros.cdk.core.IResolvable replicas) {
this.replicas = replicas;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getAppDescription}
* @param appDescription the value to be set.
* @return {@code this}
*/
public Builder appDescription(java.lang.String appDescription) {
this.appDescription = appDescription;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getAppDescription}
* @param appDescription the value to be set.
* @return {@code this}
*/
public Builder appDescription(com.aliyun.ros.cdk.core.IResolvable appDescription) {
this.appDescription = appDescription;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCommand}
* @param command the value to be set.
* @return {@code this}
*/
public Builder command(java.lang.String command) {
this.command = command;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCommand}
* @param command the value to be set.
* @return {@code this}
*/
public Builder command(com.aliyun.ros.cdk.core.IResolvable command) {
this.command = command;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCommandArgs}
* @param commandArgs the value to be set.
* @return {@code this}
*/
public Builder commandArgs(java.lang.String commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCommandArgs}
* @param commandArgs the value to be set.
* @return {@code this}
*/
public Builder commandArgs(com.aliyun.ros.cdk.core.IResolvable commandArgs) {
this.commandArgs = commandArgs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCustomHostAlias}
* @param customHostAlias the value to be set.
* @return {@code this}
*/
public Builder customHostAlias(java.lang.String customHostAlias) {
this.customHostAlias = customHostAlias;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getCustomHostAlias}
* @param customHostAlias the value to be set.
* @return {@code this}
*/
public Builder customHostAlias(com.aliyun.ros.cdk.core.IResolvable customHostAlias) {
this.customHostAlias = customHostAlias;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getDeploy}
* @param deploy the value to be set.
* @return {@code this}
*/
public Builder deploy(java.lang.Boolean deploy) {
this.deploy = deploy;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getDeploy}
* @param deploy the value to be set.
* @return {@code this}
*/
public Builder deploy(com.aliyun.ros.cdk.core.IResolvable deploy) {
this.deploy = deploy;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getEdasContainerVersion}
* @param edasContainerVersion the value to be set.
* @return {@code this}
*/
public Builder edasContainerVersion(java.lang.String edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getEdasContainerVersion}
* @param edasContainerVersion the value to be set.
* @return {@code this}
*/
public Builder edasContainerVersion(com.aliyun.ros.cdk.core.IResolvable edasContainerVersion) {
this.edasContainerVersion = edasContainerVersion;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getEnvs}
* @param envs the value to be set.
* @return {@code this}
*/
public Builder envs(java.lang.String envs) {
this.envs = envs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getEnvs}
* @param envs the value to be set.
* @return {@code this}
*/
public Builder envs(com.aliyun.ros.cdk.core.IResolvable envs) {
this.envs = envs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getImageUrl}
* @param imageUrl the value to be set.
* @return {@code this}
*/
public Builder imageUrl(java.lang.String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getImageUrl}
* @param imageUrl the value to be set.
* @return {@code this}
*/
public Builder imageUrl(com.aliyun.ros.cdk.core.IResolvable imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJarStartArgs}
* @param jarStartArgs the value to be set.
* @return {@code this}
*/
public Builder jarStartArgs(java.lang.String jarStartArgs) {
this.jarStartArgs = jarStartArgs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJarStartArgs}
* @param jarStartArgs the value to be set.
* @return {@code this}
*/
public Builder jarStartArgs(com.aliyun.ros.cdk.core.IResolvable jarStartArgs) {
this.jarStartArgs = jarStartArgs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJarStartOptions}
* @param jarStartOptions the value to be set.
* @return {@code this}
*/
public Builder jarStartOptions(java.lang.String jarStartOptions) {
this.jarStartOptions = jarStartOptions;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJarStartOptions}
* @param jarStartOptions the value to be set.
* @return {@code this}
*/
public Builder jarStartOptions(com.aliyun.ros.cdk.core.IResolvable jarStartOptions) {
this.jarStartOptions = jarStartOptions;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJdk}
* @param jdk the value to be set.
* @return {@code this}
*/
public Builder jdk(java.lang.String jdk) {
this.jdk = jdk;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getJdk}
* @param jdk the value to be set.
* @return {@code this}
*/
public Builder jdk(com.aliyun.ros.cdk.core.IResolvable jdk) {
this.jdk = jdk;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getLiveness}
* @param liveness the value to be set.
* @return {@code this}
*/
public Builder liveness(java.lang.String liveness) {
this.liveness = liveness;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getLiveness}
* @param liveness the value to be set.
* @return {@code this}
*/
public Builder liveness(com.aliyun.ros.cdk.core.IResolvable liveness) {
this.liveness = liveness;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMountDesc}
* @param mountDesc the value to be set.
* @return {@code this}
*/
public Builder mountDesc(java.lang.String mountDesc) {
this.mountDesc = mountDesc;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMountDesc}
* @param mountDesc the value to be set.
* @return {@code this}
*/
public Builder mountDesc(com.aliyun.ros.cdk.core.IResolvable mountDesc) {
this.mountDesc = mountDesc;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMountHost}
* @param mountHost the value to be set.
* @return {@code this}
*/
public Builder mountHost(java.lang.String mountHost) {
this.mountHost = mountHost;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getMountHost}
* @param mountHost the value to be set.
* @return {@code this}
*/
public Builder mountHost(com.aliyun.ros.cdk.core.IResolvable mountHost) {
this.mountHost = mountHost;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getNasId}
* @param nasId the value to be set.
* @return {@code this}
*/
public Builder nasId(java.lang.String nasId) {
this.nasId = nasId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getNasId}
* @param nasId the value to be set.
* @return {@code this}
*/
public Builder nasId(com.aliyun.ros.cdk.core.IResolvable nasId) {
this.nasId = nasId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageUrl}
* @param packageUrl the value to be set.
* @return {@code this}
*/
public Builder packageUrl(java.lang.String packageUrl) {
this.packageUrl = packageUrl;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageUrl}
* @param packageUrl the value to be set.
* @return {@code this}
*/
public Builder packageUrl(com.aliyun.ros.cdk.core.IResolvable packageUrl) {
this.packageUrl = packageUrl;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageVersion}
* @param packageVersion the value to be set.
* @return {@code this}
*/
public Builder packageVersion(java.lang.String packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPackageVersion}
* @param packageVersion the value to be set.
* @return {@code this}
*/
public Builder packageVersion(com.aliyun.ros.cdk.core.IResolvable packageVersion) {
this.packageVersion = packageVersion;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPostStart}
* @param postStart the value to be set.
* @return {@code this}
*/
public Builder postStart(java.lang.String postStart) {
this.postStart = postStart;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPostStart}
* @param postStart the value to be set.
* @return {@code this}
*/
public Builder postStart(com.aliyun.ros.cdk.core.IResolvable postStart) {
this.postStart = postStart;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPreStop}
* @param preStop the value to be set.
* @return {@code this}
*/
public Builder preStop(java.lang.String preStop) {
this.preStop = preStop;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getPreStop}
* @param preStop the value to be set.
* @return {@code this}
*/
public Builder preStop(com.aliyun.ros.cdk.core.IResolvable preStop) {
this.preStop = preStop;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getReadiness}
* @param readiness the value to be set.
* @return {@code this}
*/
public Builder readiness(java.lang.String readiness) {
this.readiness = readiness;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getReadiness}
* @param readiness the value to be set.
* @return {@code this}
*/
public Builder readiness(com.aliyun.ros.cdk.core.IResolvable readiness) {
this.readiness = readiness;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getSecurityGroupId}
* @param securityGroupId the value to be set.
* @return {@code this}
*/
public Builder securityGroupId(java.lang.String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getSecurityGroupId}
* @param securityGroupId the value to be set.
* @return {@code this}
*/
public Builder securityGroupId(com.aliyun.ros.cdk.core.IResolvable securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getSlsConfigs}
* @param slsConfigs the value to be set.
* @return {@code this}
*/
public Builder slsConfigs(java.lang.String slsConfigs) {
this.slsConfigs = slsConfigs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getSlsConfigs}
* @param slsConfigs the value to be set.
* @return {@code this}
*/
public Builder slsConfigs(com.aliyun.ros.cdk.core.IResolvable slsConfigs) {
this.slsConfigs = slsConfigs;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getTags}
* @param tags the value to be set.
* @return {@code this}
*/
@SuppressWarnings("unchecked")
public Builder tags(java.util.List extends com.aliyun.ros.cdk.sae.RosApplication.TagsProperty> tags) {
this.tags = (java.util.List)tags;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getTimezone}
* @param timezone the value to be set.
* @return {@code this}
*/
public Builder timezone(java.lang.String timezone) {
this.timezone = timezone;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getTimezone}
* @param timezone the value to be set.
* @return {@code this}
*/
public Builder timezone(com.aliyun.ros.cdk.core.IResolvable timezone) {
this.timezone = timezone;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getVpcId}
* @param vpcId the value to be set.
* @return {@code this}
*/
public Builder vpcId(java.lang.String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getVpcId}
* @param vpcId the value to be set.
* @return {@code this}
*/
public Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getVSwitchId}
* @param vSwitchId the value to be set.
* @return {@code this}
*/
public Builder vSwitchId(java.lang.String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getVSwitchId}
* @param vSwitchId the value to be set.
* @return {@code this}
*/
public Builder vSwitchId(com.aliyun.ros.cdk.core.IResolvable vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getWarStartOptions}
* @param warStartOptions the value to be set.
* @return {@code this}
*/
public Builder warStartOptions(java.lang.String warStartOptions) {
this.warStartOptions = warStartOptions;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getWarStartOptions}
* @param warStartOptions the value to be set.
* @return {@code this}
*/
public Builder warStartOptions(com.aliyun.ros.cdk.core.IResolvable warStartOptions) {
this.warStartOptions = warStartOptions;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getWebContainer}
* @param webContainer the value to be set.
* @return {@code this}
*/
public Builder webContainer(java.lang.String webContainer) {
this.webContainer = webContainer;
return this;
}
/**
* Sets the value of {@link RosApplicationProps#getWebContainer}
* @param webContainer the value to be set.
* @return {@code this}
*/
public Builder webContainer(com.aliyun.ros.cdk.core.IResolvable webContainer) {
this.webContainer = webContainer;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link RosApplicationProps}
* @throws NullPointerException if any required attribute was not provided
*/
@Override
public RosApplicationProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link RosApplicationProps}
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosApplicationProps {
private final java.lang.Object appName;
private final java.lang.Object cpu;
private final java.lang.Object memory;
private final java.lang.Object namespaceId;
private final java.lang.Object packageType;
private final java.lang.Object replicas;
private final java.lang.Object appDescription;
private final java.lang.Object command;
private final java.lang.Object commandArgs;
private final java.lang.Object customHostAlias;
private final java.lang.Object deploy;
private final java.lang.Object edasContainerVersion;
private final java.lang.Object envs;
private final java.lang.Object imageUrl;
private final java.lang.Object jarStartArgs;
private final java.lang.Object jarStartOptions;
private final java.lang.Object jdk;
private final java.lang.Object liveness;
private final java.lang.Object mountDesc;
private final java.lang.Object mountHost;
private final java.lang.Object nasId;
private final java.lang.Object packageUrl;
private final java.lang.Object packageVersion;
private final java.lang.Object postStart;
private final java.lang.Object preStop;
private final java.lang.Object readiness;
private final java.lang.Object securityGroupId;
private final java.lang.Object slsConfigs;
private final java.util.List tags;
private final java.lang.Object timezone;
private final java.lang.Object vpcId;
private final java.lang.Object vSwitchId;
private final java.lang.Object warStartOptions;
private final java.lang.Object webContainer;
/**
* 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.cpu = software.amazon.jsii.Kernel.get(this, "cpu", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.memory = software.amazon.jsii.Kernel.get(this, "memory", 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));
this.packageType = software.amazon.jsii.Kernel.get(this, "packageType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.replicas = software.amazon.jsii.Kernel.get(this, "replicas", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.appDescription = software.amazon.jsii.Kernel.get(this, "appDescription", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.command = software.amazon.jsii.Kernel.get(this, "command", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.commandArgs = software.amazon.jsii.Kernel.get(this, "commandArgs", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.customHostAlias = software.amazon.jsii.Kernel.get(this, "customHostAlias", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.deploy = software.amazon.jsii.Kernel.get(this, "deploy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.edasContainerVersion = software.amazon.jsii.Kernel.get(this, "edasContainerVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.envs = software.amazon.jsii.Kernel.get(this, "envs", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.imageUrl = software.amazon.jsii.Kernel.get(this, "imageUrl", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.jarStartArgs = software.amazon.jsii.Kernel.get(this, "jarStartArgs", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.jarStartOptions = software.amazon.jsii.Kernel.get(this, "jarStartOptions", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.jdk = software.amazon.jsii.Kernel.get(this, "jdk", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.liveness = software.amazon.jsii.Kernel.get(this, "liveness", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.mountDesc = software.amazon.jsii.Kernel.get(this, "mountDesc", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.mountHost = software.amazon.jsii.Kernel.get(this, "mountHost", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.nasId = software.amazon.jsii.Kernel.get(this, "nasId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.packageUrl = software.amazon.jsii.Kernel.get(this, "packageUrl", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.packageVersion = software.amazon.jsii.Kernel.get(this, "packageVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.postStart = software.amazon.jsii.Kernel.get(this, "postStart", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.preStop = software.amazon.jsii.Kernel.get(this, "preStop", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.readiness = software.amazon.jsii.Kernel.get(this, "readiness", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.securityGroupId = software.amazon.jsii.Kernel.get(this, "securityGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.slsConfigs = software.amazon.jsii.Kernel.get(this, "slsConfigs", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.sae.RosApplication.TagsProperty.class)));
this.timezone = software.amazon.jsii.Kernel.get(this, "timezone", 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));
this.vSwitchId = software.amazon.jsii.Kernel.get(this, "vSwitchId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.warStartOptions = software.amazon.jsii.Kernel.get(this, "warStartOptions", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.webContainer = software.amazon.jsii.Kernel.get(this, "webContainer", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.appName = java.util.Objects.requireNonNull(builder.appName, "appName is required");
this.cpu = java.util.Objects.requireNonNull(builder.cpu, "cpu is required");
this.memory = java.util.Objects.requireNonNull(builder.memory, "memory is required");
this.namespaceId = java.util.Objects.requireNonNull(builder.namespaceId, "namespaceId is required");
this.packageType = java.util.Objects.requireNonNull(builder.packageType, "packageType is required");
this.replicas = java.util.Objects.requireNonNull(builder.replicas, "replicas is required");
this.appDescription = builder.appDescription;
this.command = builder.command;
this.commandArgs = builder.commandArgs;
this.customHostAlias = builder.customHostAlias;
this.deploy = builder.deploy;
this.edasContainerVersion = builder.edasContainerVersion;
this.envs = builder.envs;
this.imageUrl = builder.imageUrl;
this.jarStartArgs = builder.jarStartArgs;
this.jarStartOptions = builder.jarStartOptions;
this.jdk = builder.jdk;
this.liveness = builder.liveness;
this.mountDesc = builder.mountDesc;
this.mountHost = builder.mountHost;
this.nasId = builder.nasId;
this.packageUrl = builder.packageUrl;
this.packageVersion = builder.packageVersion;
this.postStart = builder.postStart;
this.preStop = builder.preStop;
this.readiness = builder.readiness;
this.securityGroupId = builder.securityGroupId;
this.slsConfigs = builder.slsConfigs;
this.tags = (java.util.List)builder.tags;
this.timezone = builder.timezone;
this.vpcId = builder.vpcId;
this.vSwitchId = builder.vSwitchId;
this.warStartOptions = builder.warStartOptions;
this.webContainer = builder.webContainer;
}
@Override
public final java.lang.Object getAppName() {
return this.appName;
}
@Override
public final java.lang.Object getCpu() {
return this.cpu;
}
@Override
public final java.lang.Object getMemory() {
return this.memory;
}
@Override
public final java.lang.Object getNamespaceId() {
return this.namespaceId;
}
@Override
public final java.lang.Object getPackageType() {
return this.packageType;
}
@Override
public final java.lang.Object getReplicas() {
return this.replicas;
}
@Override
public final java.lang.Object getAppDescription() {
return this.appDescription;
}
@Override
public final java.lang.Object getCommand() {
return this.command;
}
@Override
public final java.lang.Object getCommandArgs() {
return this.commandArgs;
}
@Override
public final java.lang.Object getCustomHostAlias() {
return this.customHostAlias;
}
@Override
public final java.lang.Object getDeploy() {
return this.deploy;
}
@Override
public final java.lang.Object getEdasContainerVersion() {
return this.edasContainerVersion;
}
@Override
public final java.lang.Object getEnvs() {
return this.envs;
}
@Override
public final java.lang.Object getImageUrl() {
return this.imageUrl;
}
@Override
public final java.lang.Object getJarStartArgs() {
return this.jarStartArgs;
}
@Override
public final java.lang.Object getJarStartOptions() {
return this.jarStartOptions;
}
@Override
public final java.lang.Object getJdk() {
return this.jdk;
}
@Override
public final java.lang.Object getLiveness() {
return this.liveness;
}
@Override
public final java.lang.Object getMountDesc() {
return this.mountDesc;
}
@Override
public final java.lang.Object getMountHost() {
return this.mountHost;
}
@Override
public final java.lang.Object getNasId() {
return this.nasId;
}
@Override
public final java.lang.Object getPackageUrl() {
return this.packageUrl;
}
@Override
public final java.lang.Object getPackageVersion() {
return this.packageVersion;
}
@Override
public final java.lang.Object getPostStart() {
return this.postStart;
}
@Override
public final java.lang.Object getPreStop() {
return this.preStop;
}
@Override
public final java.lang.Object getReadiness() {
return this.readiness;
}
@Override
public final java.lang.Object getSecurityGroupId() {
return this.securityGroupId;
}
@Override
public final java.lang.Object getSlsConfigs() {
return this.slsConfigs;
}
@Override
public final java.util.List getTags() {
return this.tags;
}
@Override
public final java.lang.Object getTimezone() {
return this.timezone;
}
@Override
public final java.lang.Object getVpcId() {
return this.vpcId;
}
@Override
public final java.lang.Object getVSwitchId() {
return this.vSwitchId;
}
@Override
public final java.lang.Object getWarStartOptions() {
return this.warStartOptions;
}
@Override
public final java.lang.Object getWebContainer() {
return this.webContainer;
}
@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("appName", om.valueToTree(this.getAppName()));
data.set("cpu", om.valueToTree(this.getCpu()));
data.set("memory", om.valueToTree(this.getMemory()));
data.set("namespaceId", om.valueToTree(this.getNamespaceId()));
data.set("packageType", om.valueToTree(this.getPackageType()));
data.set("replicas", om.valueToTree(this.getReplicas()));
if (this.getAppDescription() != null) {
data.set("appDescription", om.valueToTree(this.getAppDescription()));
}
if (this.getCommand() != null) {
data.set("command", om.valueToTree(this.getCommand()));
}
if (this.getCommandArgs() != null) {
data.set("commandArgs", om.valueToTree(this.getCommandArgs()));
}
if (this.getCustomHostAlias() != null) {
data.set("customHostAlias", om.valueToTree(this.getCustomHostAlias()));
}
if (this.getDeploy() != null) {
data.set("deploy", om.valueToTree(this.getDeploy()));
}
if (this.getEdasContainerVersion() != null) {
data.set("edasContainerVersion", om.valueToTree(this.getEdasContainerVersion()));
}
if (this.getEnvs() != null) {
data.set("envs", om.valueToTree(this.getEnvs()));
}
if (this.getImageUrl() != null) {
data.set("imageUrl", om.valueToTree(this.getImageUrl()));
}
if (this.getJarStartArgs() != null) {
data.set("jarStartArgs", om.valueToTree(this.getJarStartArgs()));
}
if (this.getJarStartOptions() != null) {
data.set("jarStartOptions", om.valueToTree(this.getJarStartOptions()));
}
if (this.getJdk() != null) {
data.set("jdk", om.valueToTree(this.getJdk()));
}
if (this.getLiveness() != null) {
data.set("liveness", om.valueToTree(this.getLiveness()));
}
if (this.getMountDesc() != null) {
data.set("mountDesc", om.valueToTree(this.getMountDesc()));
}
if (this.getMountHost() != null) {
data.set("mountHost", om.valueToTree(this.getMountHost()));
}
if (this.getNasId() != null) {
data.set("nasId", om.valueToTree(this.getNasId()));
}
if (this.getPackageUrl() != null) {
data.set("packageUrl", om.valueToTree(this.getPackageUrl()));
}
if (this.getPackageVersion() != null) {
data.set("packageVersion", om.valueToTree(this.getPackageVersion()));
}
if (this.getPostStart() != null) {
data.set("postStart", om.valueToTree(this.getPostStart()));
}
if (this.getPreStop() != null) {
data.set("preStop", om.valueToTree(this.getPreStop()));
}
if (this.getReadiness() != null) {
data.set("readiness", om.valueToTree(this.getReadiness()));
}
if (this.getSecurityGroupId() != null) {
data.set("securityGroupId", om.valueToTree(this.getSecurityGroupId()));
}
if (this.getSlsConfigs() != null) {
data.set("slsConfigs", om.valueToTree(this.getSlsConfigs()));
}
if (this.getTags() != null) {
data.set("tags", om.valueToTree(this.getTags()));
}
if (this.getTimezone() != null) {
data.set("timezone", om.valueToTree(this.getTimezone()));
}
if (this.getVpcId() != null) {
data.set("vpcId", om.valueToTree(this.getVpcId()));
}
if (this.getVSwitchId() != null) {
data.set("vSwitchId", om.valueToTree(this.getVSwitchId()));
}
if (this.getWarStartOptions() != null) {
data.set("warStartOptions", om.valueToTree(this.getWarStartOptions()));
}
if (this.getWebContainer() != null) {
data.set("webContainer", om.valueToTree(this.getWebContainer()));
}
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.RosApplicationProps"));
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;
RosApplicationProps.Jsii$Proxy that = (RosApplicationProps.Jsii$Proxy) o;
if (!appName.equals(that.appName)) return false;
if (!cpu.equals(that.cpu)) return false;
if (!memory.equals(that.memory)) return false;
if (!namespaceId.equals(that.namespaceId)) return false;
if (!packageType.equals(that.packageType)) return false;
if (!replicas.equals(that.replicas)) return false;
if (this.appDescription != null ? !this.appDescription.equals(that.appDescription) : that.appDescription != null) return false;
if (this.command != null ? !this.command.equals(that.command) : that.command != null) return false;
if (this.commandArgs != null ? !this.commandArgs.equals(that.commandArgs) : that.commandArgs != null) return false;
if (this.customHostAlias != null ? !this.customHostAlias.equals(that.customHostAlias) : that.customHostAlias != null) return false;
if (this.deploy != null ? !this.deploy.equals(that.deploy) : that.deploy != null) return false;
if (this.edasContainerVersion != null ? !this.edasContainerVersion.equals(that.edasContainerVersion) : that.edasContainerVersion != null) return false;
if (this.envs != null ? !this.envs.equals(that.envs) : that.envs != null) return false;
if (this.imageUrl != null ? !this.imageUrl.equals(that.imageUrl) : that.imageUrl != null) return false;
if (this.jarStartArgs != null ? !this.jarStartArgs.equals(that.jarStartArgs) : that.jarStartArgs != null) return false;
if (this.jarStartOptions != null ? !this.jarStartOptions.equals(that.jarStartOptions) : that.jarStartOptions != null) return false;
if (this.jdk != null ? !this.jdk.equals(that.jdk) : that.jdk != null) return false;
if (this.liveness != null ? !this.liveness.equals(that.liveness) : that.liveness != null) return false;
if (this.mountDesc != null ? !this.mountDesc.equals(that.mountDesc) : that.mountDesc != null) return false;
if (this.mountHost != null ? !this.mountHost.equals(that.mountHost) : that.mountHost != null) return false;
if (this.nasId != null ? !this.nasId.equals(that.nasId) : that.nasId != null) return false;
if (this.packageUrl != null ? !this.packageUrl.equals(that.packageUrl) : that.packageUrl != null) return false;
if (this.packageVersion != null ? !this.packageVersion.equals(that.packageVersion) : that.packageVersion != null) return false;
if (this.postStart != null ? !this.postStart.equals(that.postStart) : that.postStart != null) return false;
if (this.preStop != null ? !this.preStop.equals(that.preStop) : that.preStop != null) return false;
if (this.readiness != null ? !this.readiness.equals(that.readiness) : that.readiness != null) return false;
if (this.securityGroupId != null ? !this.securityGroupId.equals(that.securityGroupId) : that.securityGroupId != null) return false;
if (this.slsConfigs != null ? !this.slsConfigs.equals(that.slsConfigs) : that.slsConfigs != null) return false;
if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false;
if (this.timezone != null ? !this.timezone.equals(that.timezone) : that.timezone != null) return false;
if (this.vpcId != null ? !this.vpcId.equals(that.vpcId) : that.vpcId != null) return false;
if (this.vSwitchId != null ? !this.vSwitchId.equals(that.vSwitchId) : that.vSwitchId != null) return false;
if (this.warStartOptions != null ? !this.warStartOptions.equals(that.warStartOptions) : that.warStartOptions != null) return false;
return this.webContainer != null ? this.webContainer.equals(that.webContainer) : that.webContainer == null;
}
@Override
public final int hashCode() {
int result = this.appName.hashCode();
result = 31 * result + (this.cpu.hashCode());
result = 31 * result + (this.memory.hashCode());
result = 31 * result + (this.namespaceId.hashCode());
result = 31 * result + (this.packageType.hashCode());
result = 31 * result + (this.replicas.hashCode());
result = 31 * result + (this.appDescription != null ? this.appDescription.hashCode() : 0);
result = 31 * result + (this.command != null ? this.command.hashCode() : 0);
result = 31 * result + (this.commandArgs != null ? this.commandArgs.hashCode() : 0);
result = 31 * result + (this.customHostAlias != null ? this.customHostAlias.hashCode() : 0);
result = 31 * result + (this.deploy != null ? this.deploy.hashCode() : 0);
result = 31 * result + (this.edasContainerVersion != null ? this.edasContainerVersion.hashCode() : 0);
result = 31 * result + (this.envs != null ? this.envs.hashCode() : 0);
result = 31 * result + (this.imageUrl != null ? this.imageUrl.hashCode() : 0);
result = 31 * result + (this.jarStartArgs != null ? this.jarStartArgs.hashCode() : 0);
result = 31 * result + (this.jarStartOptions != null ? this.jarStartOptions.hashCode() : 0);
result = 31 * result + (this.jdk != null ? this.jdk.hashCode() : 0);
result = 31 * result + (this.liveness != null ? this.liveness.hashCode() : 0);
result = 31 * result + (this.mountDesc != null ? this.mountDesc.hashCode() : 0);
result = 31 * result + (this.mountHost != null ? this.mountHost.hashCode() : 0);
result = 31 * result + (this.nasId != null ? this.nasId.hashCode() : 0);
result = 31 * result + (this.packageUrl != null ? this.packageUrl.hashCode() : 0);
result = 31 * result + (this.packageVersion != null ? this.packageVersion.hashCode() : 0);
result = 31 * result + (this.postStart != null ? this.postStart.hashCode() : 0);
result = 31 * result + (this.preStop != null ? this.preStop.hashCode() : 0);
result = 31 * result + (this.readiness != null ? this.readiness.hashCode() : 0);
result = 31 * result + (this.securityGroupId != null ? this.securityGroupId.hashCode() : 0);
result = 31 * result + (this.slsConfigs != null ? this.slsConfigs.hashCode() : 0);
result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
result = 31 * result + (this.timezone != null ? this.timezone.hashCode() : 0);
result = 31 * result + (this.vpcId != null ? this.vpcId.hashCode() : 0);
result = 31 * result + (this.vSwitchId != null ? this.vSwitchId.hashCode() : 0);
result = 31 * result + (this.warStartOptions != null ? this.warStartOptions.hashCode() : 0);
result = 31 * result + (this.webContainer != null ? this.webContainer.hashCode() : 0);
return result;
}
}
}