com.aliyun.ros.cdk.fc.RosService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ros-cdk-fc Show documentation
Show all versions of ros-cdk-fc Show documentation
Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com
The newest version!
package com.aliyun.ros.cdk.fc;
/**
* This class is a base encapsulation around the ROS resource type ALIYUN::FC::Service
, which is used to create a service in Function Compute.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:13.491Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService")
public class RosService extends com.aliyun.ros.cdk.core.RosResource {
protected RosService(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RosService(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.fc.RosService.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* @param scope - scope in which this resource is defined.
This parameter is required.
* @param id - scoped id of the resource.
This parameter is required.
* @param props - resource properties.
This parameter is required.
* @param enableResourcePropertyConstraint This parameter is required.
*/
public RosService(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.fc.RosServiceProps props, final @org.jetbrains.annotations.NotNull java.lang.Boolean enableResourcePropertyConstraint) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required"), java.util.Objects.requireNonNull(enableResourcePropertyConstraint, "enableResourcePropertyConstraint is required") });
}
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }));
}
/**
* The resource type name for this resource class.
*/
public final static java.lang.String ROS_RESOURCE_TYPE_NAME;
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInternetAccess() {
return software.amazon.jsii.Kernel.get(this, "attrInternetAccess", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrLogProject() {
return software.amazon.jsii.Kernel.get(this, "attrLogProject", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrLogstore() {
return software.amazon.jsii.Kernel.get(this, "attrLogstore", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrRole() {
return software.amazon.jsii.Kernel.get(this, "attrRole", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrServiceId() {
return software.amazon.jsii.Kernel.get(this, "attrServiceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrServiceName() {
return software.amazon.jsii.Kernel.get(this, "attrServiceName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrTags() {
return software.amazon.jsii.Kernel.get(this, "attrTags", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrVpcId() {
return software.amazon.jsii.Kernel.get(this, "attrVpcId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map getRosProperties() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "rosProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() {
return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
public void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getServiceName() {
return software.amazon.jsii.Kernel.get(this, "serviceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setServiceName(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "serviceName", java.util.Objects.requireNonNull(value, "serviceName is required"));
}
/**
*/
public void setServiceName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "serviceName", java.util.Objects.requireNonNull(value, "serviceName is required"));
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getDeletionForce() {
return software.amazon.jsii.Kernel.get(this, "deletionForce", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setDeletionForce(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "deletionForce", value);
}
/**
*/
public void setDeletionForce(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "deletionForce", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getDescription() {
return software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setDescription(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "description", value);
}
/**
*/
public void setDescription(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "description", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getInternetAccess() {
return software.amazon.jsii.Kernel.get(this, "internetAccess", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setInternetAccess(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "internetAccess", value);
}
/**
*/
public void setInternetAccess(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "internetAccess", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getLogConfig() {
return software.amazon.jsii.Kernel.get(this, "logConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setLogConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "logConfig", value);
}
/**
*/
public void setLogConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.fc.RosService.LogConfigProperty value) {
software.amazon.jsii.Kernel.set(this, "logConfig", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getNasConfig() {
return software.amazon.jsii.Kernel.get(this, "nasConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setNasConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "nasConfig", value);
}
/**
*/
public void setNasConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.fc.RosService.NasConfigProperty value) {
software.amazon.jsii.Kernel.set(this, "nasConfig", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getOssMountConfig() {
return software.amazon.jsii.Kernel.get(this, "ossMountConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setOssMountConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "ossMountConfig", value);
}
/**
*/
public void setOssMountConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.fc.RosService.OssMountConfigProperty value) {
software.amazon.jsii.Kernel.set(this, "ossMountConfig", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getRole() {
return software.amazon.jsii.Kernel.get(this, "role", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setRole(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "role", value);
}
/**
*/
public void setRole(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "role", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.util.List getTags() {
return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.fc.RosService.TagsProperty.class))))).map(java.util.Collections::unmodifiableList).orElse(null);
}
/**
*/
public void setTags(final @org.jetbrains.annotations.Nullable java.util.List value) {
software.amazon.jsii.Kernel.set(this, "tags", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getTracingConfig() {
return software.amazon.jsii.Kernel.get(this, "tracingConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setTracingConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "tracingConfig", value);
}
/**
*/
public void setTracingConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.fc.RosService.TracingConfigProperty value) {
software.amazon.jsii.Kernel.set(this, "tracingConfig", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getVpcBindings() {
return software.amazon.jsii.Kernel.get(this, "vpcBindings", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setVpcBindings(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "vpcBindings", value);
}
/**
*/
public void setVpcBindings(final @org.jetbrains.annotations.Nullable java.util.List value) {
if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) {
for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) {
final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0);
if (
!(__val_ac66f0 instanceof java.lang.String)
&& !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable)
&& !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class))
) {
throw new IllegalArgumentException(
new java.lang.StringBuilder("Expected ")
.append("value").append(".get(").append(__idx_ac66f0).append(")")
.append(" to be one of: java.lang.String, com.aliyun.ros.cdk.core.IResolvable; received ")
.append(__val_ac66f0.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.set(this, "vpcBindings", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getVpcConfig() {
return software.amazon.jsii.Kernel.get(this, "vpcConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setVpcConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "vpcConfig", value);
}
/**
*/
public void setVpcConfig(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.fc.RosService.VpcConfigProperty value) {
software.amazon.jsii.Kernel.set(this, "vpcConfig", value);
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.LogConfigProperty")
@software.amazon.jsii.Jsii.Proxy(LogConfigProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface LogConfigProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getEnableRequestMetrics() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getLogBeginRule() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getLogstore() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getProject() {
return null;
}
/**
* @return a {@link Builder} of {@link LogConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link LogConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object enableRequestMetrics;
java.lang.Object logBeginRule;
java.lang.Object logstore;
java.lang.Object project;
/**
* Sets the value of {@link LogConfigProperty#getEnableRequestMetrics}
* @param enableRequestMetrics the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder enableRequestMetrics(java.lang.Boolean enableRequestMetrics) {
this.enableRequestMetrics = enableRequestMetrics;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getEnableRequestMetrics}
* @param enableRequestMetrics the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder enableRequestMetrics(com.aliyun.ros.cdk.core.IResolvable enableRequestMetrics) {
this.enableRequestMetrics = enableRequestMetrics;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getLogBeginRule}
* @param logBeginRule the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder logBeginRule(java.lang.String logBeginRule) {
this.logBeginRule = logBeginRule;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getLogBeginRule}
* @param logBeginRule the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder logBeginRule(com.aliyun.ros.cdk.core.IResolvable logBeginRule) {
this.logBeginRule = logBeginRule;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getLogstore}
* @param logstore the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder logstore(java.lang.String logstore) {
this.logstore = logstore;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getLogstore}
* @param logstore the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder logstore(com.aliyun.ros.cdk.core.IResolvable logstore) {
this.logstore = logstore;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getProject}
* @param project the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder project(java.lang.String project) {
this.project = project;
return this;
}
/**
* Sets the value of {@link LogConfigProperty#getProject}
* @param project the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder project(com.aliyun.ros.cdk.core.IResolvable project) {
this.project = project;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link LogConfigProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public LogConfigProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link LogConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LogConfigProperty {
private final java.lang.Object enableRequestMetrics;
private final java.lang.Object logBeginRule;
private final java.lang.Object logstore;
private final java.lang.Object project;
/**
* 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.enableRequestMetrics = software.amazon.jsii.Kernel.get(this, "enableRequestMetrics", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.logBeginRule = software.amazon.jsii.Kernel.get(this, "logBeginRule", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.logstore = software.amazon.jsii.Kernel.get(this, "logstore", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.project = software.amazon.jsii.Kernel.get(this, "project", 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.enableRequestMetrics = builder.enableRequestMetrics;
this.logBeginRule = builder.logBeginRule;
this.logstore = builder.logstore;
this.project = builder.project;
}
@Override
public final java.lang.Object getEnableRequestMetrics() {
return this.enableRequestMetrics;
}
@Override
public final java.lang.Object getLogBeginRule() {
return this.logBeginRule;
}
@Override
public final java.lang.Object getLogstore() {
return this.logstore;
}
@Override
public final java.lang.Object getProject() {
return this.project;
}
@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.getEnableRequestMetrics() != null) {
data.set("enableRequestMetrics", om.valueToTree(this.getEnableRequestMetrics()));
}
if (this.getLogBeginRule() != null) {
data.set("logBeginRule", om.valueToTree(this.getLogBeginRule()));
}
if (this.getLogstore() != null) {
data.set("logstore", om.valueToTree(this.getLogstore()));
}
if (this.getProject() != null) {
data.set("project", om.valueToTree(this.getProject()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.LogConfigProperty"));
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;
LogConfigProperty.Jsii$Proxy that = (LogConfigProperty.Jsii$Proxy) o;
if (this.enableRequestMetrics != null ? !this.enableRequestMetrics.equals(that.enableRequestMetrics) : that.enableRequestMetrics != null) return false;
if (this.logBeginRule != null ? !this.logBeginRule.equals(that.logBeginRule) : that.logBeginRule != null) return false;
if (this.logstore != null ? !this.logstore.equals(that.logstore) : that.logstore != null) return false;
return this.project != null ? this.project.equals(that.project) : that.project == null;
}
@Override
public final int hashCode() {
int result = this.enableRequestMetrics != null ? this.enableRequestMetrics.hashCode() : 0;
result = 31 * result + (this.logBeginRule != null ? this.logBeginRule.hashCode() : 0);
result = 31 * result + (this.logstore != null ? this.logstore.hashCode() : 0);
result = 31 * result + (this.project != null ? this.project.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.MountPointsProperty")
@software.amazon.jsii.Jsii.Proxy(MountPointsProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface MountPointsProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getMountDir();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getServerAddr();
/**
* @return a {@link Builder} of {@link MountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link MountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object mountDir;
java.lang.Object serverAddr;
/**
* Sets the value of {@link MountPointsProperty#getMountDir}
* @param mountDir the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountDir(java.lang.String mountDir) {
this.mountDir = mountDir;
return this;
}
/**
* Sets the value of {@link MountPointsProperty#getMountDir}
* @param mountDir the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountDir(com.aliyun.ros.cdk.core.IResolvable mountDir) {
this.mountDir = mountDir;
return this;
}
/**
* Sets the value of {@link MountPointsProperty#getServerAddr}
* @param serverAddr the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder serverAddr(java.lang.String serverAddr) {
this.serverAddr = serverAddr;
return this;
}
/**
* Sets the value of {@link MountPointsProperty#getServerAddr}
* @param serverAddr the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder serverAddr(com.aliyun.ros.cdk.core.IResolvable serverAddr) {
this.serverAddr = serverAddr;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link MountPointsProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public MountPointsProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link MountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MountPointsProperty {
private final java.lang.Object mountDir;
private final java.lang.Object serverAddr;
/**
* 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.mountDir = software.amazon.jsii.Kernel.get(this, "mountDir", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.serverAddr = software.amazon.jsii.Kernel.get(this, "serverAddr", 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.mountDir = java.util.Objects.requireNonNull(builder.mountDir, "mountDir is required");
this.serverAddr = java.util.Objects.requireNonNull(builder.serverAddr, "serverAddr is required");
}
@Override
public final java.lang.Object getMountDir() {
return this.mountDir;
}
@Override
public final java.lang.Object getServerAddr() {
return this.serverAddr;
}
@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("mountDir", om.valueToTree(this.getMountDir()));
data.set("serverAddr", om.valueToTree(this.getServerAddr()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.MountPointsProperty"));
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;
MountPointsProperty.Jsii$Proxy that = (MountPointsProperty.Jsii$Proxy) o;
if (!mountDir.equals(that.mountDir)) return false;
return this.serverAddr.equals(that.serverAddr);
}
@Override
public final int hashCode() {
int result = this.mountDir.hashCode();
result = 31 * result + (this.serverAddr.hashCode());
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.NasConfigProperty")
@software.amazon.jsii.Jsii.Proxy(NasConfigProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface NasConfigProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getGroupId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getMountPoints();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getUserId();
/**
* @return a {@link Builder} of {@link NasConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link NasConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object groupId;
java.lang.Object mountPoints;
java.lang.Object userId;
/**
* Sets the value of {@link NasConfigProperty#getGroupId}
* @param groupId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder groupId(java.lang.Number groupId) {
this.groupId = groupId;
return this;
}
/**
* Sets the value of {@link NasConfigProperty#getGroupId}
* @param groupId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder groupId(com.aliyun.ros.cdk.core.IResolvable groupId) {
this.groupId = groupId;
return this;
}
/**
* Sets the value of {@link NasConfigProperty#getMountPoints}
* @param mountPoints the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountPoints(com.aliyun.ros.cdk.core.IResolvable mountPoints) {
this.mountPoints = mountPoints;
return this;
}
/**
* Sets the value of {@link NasConfigProperty#getMountPoints}
* @param mountPoints the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountPoints(java.util.List extends java.lang.Object> mountPoints) {
this.mountPoints = mountPoints;
return this;
}
/**
* Sets the value of {@link NasConfigProperty#getUserId}
* @param userId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder userId(java.lang.Number userId) {
this.userId = userId;
return this;
}
/**
* Sets the value of {@link NasConfigProperty#getUserId}
* @param userId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder userId(com.aliyun.ros.cdk.core.IResolvable userId) {
this.userId = userId;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link NasConfigProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public NasConfigProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link NasConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NasConfigProperty {
private final java.lang.Object groupId;
private final java.lang.Object mountPoints;
private final java.lang.Object userId;
/**
* 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.groupId = software.amazon.jsii.Kernel.get(this, "groupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.mountPoints = software.amazon.jsii.Kernel.get(this, "mountPoints", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.userId = software.amazon.jsii.Kernel.get(this, "userId", 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.groupId = java.util.Objects.requireNonNull(builder.groupId, "groupId is required");
this.mountPoints = java.util.Objects.requireNonNull(builder.mountPoints, "mountPoints is required");
this.userId = java.util.Objects.requireNonNull(builder.userId, "userId is required");
}
@Override
public final java.lang.Object getGroupId() {
return this.groupId;
}
@Override
public final java.lang.Object getMountPoints() {
return this.mountPoints;
}
@Override
public final java.lang.Object getUserId() {
return this.userId;
}
@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("groupId", om.valueToTree(this.getGroupId()));
data.set("mountPoints", om.valueToTree(this.getMountPoints()));
data.set("userId", om.valueToTree(this.getUserId()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.NasConfigProperty"));
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;
NasConfigProperty.Jsii$Proxy that = (NasConfigProperty.Jsii$Proxy) o;
if (!groupId.equals(that.groupId)) return false;
if (!mountPoints.equals(that.mountPoints)) return false;
return this.userId.equals(that.userId);
}
@Override
public final int hashCode() {
int result = this.groupId.hashCode();
result = 31 * result + (this.mountPoints.hashCode());
result = 31 * result + (this.userId.hashCode());
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.OssMountConfigMountPointsProperty")
@software.amazon.jsii.Jsii.Proxy(OssMountConfigMountPointsProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface OssMountConfigMountPointsProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getBucketName();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getBucketPath();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getEndPoint();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getMountDir();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getReadOnly();
/**
* @return a {@link Builder} of {@link OssMountConfigMountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link OssMountConfigMountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object bucketName;
java.lang.Object bucketPath;
java.lang.Object endPoint;
java.lang.Object mountDir;
java.lang.Object readOnly;
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getBucketName}
* @param bucketName the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketName(java.lang.String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getBucketName}
* @param bucketName the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketName(com.aliyun.ros.cdk.core.IResolvable bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getBucketPath}
* @param bucketPath the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketPath(java.lang.String bucketPath) {
this.bucketPath = bucketPath;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getBucketPath}
* @param bucketPath the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketPath(com.aliyun.ros.cdk.core.IResolvable bucketPath) {
this.bucketPath = bucketPath;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getEndPoint}
* @param endPoint the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder endPoint(java.lang.String endPoint) {
this.endPoint = endPoint;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getEndPoint}
* @param endPoint the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder endPoint(com.aliyun.ros.cdk.core.IResolvable endPoint) {
this.endPoint = endPoint;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getMountDir}
* @param mountDir the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountDir(java.lang.String mountDir) {
this.mountDir = mountDir;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getMountDir}
* @param mountDir the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountDir(com.aliyun.ros.cdk.core.IResolvable mountDir) {
this.mountDir = mountDir;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getReadOnly}
* @param readOnly the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder readOnly(java.lang.Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Sets the value of {@link OssMountConfigMountPointsProperty#getReadOnly}
* @param readOnly the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder readOnly(com.aliyun.ros.cdk.core.IResolvable readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link OssMountConfigMountPointsProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public OssMountConfigMountPointsProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link OssMountConfigMountPointsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements OssMountConfigMountPointsProperty {
private final java.lang.Object bucketName;
private final java.lang.Object bucketPath;
private final java.lang.Object endPoint;
private final java.lang.Object mountDir;
private final java.lang.Object readOnly;
/**
* 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.bucketName = software.amazon.jsii.Kernel.get(this, "bucketName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.bucketPath = software.amazon.jsii.Kernel.get(this, "bucketPath", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.endPoint = software.amazon.jsii.Kernel.get(this, "endPoint", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.mountDir = software.amazon.jsii.Kernel.get(this, "mountDir", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.readOnly = software.amazon.jsii.Kernel.get(this, "readOnly", 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.bucketName = java.util.Objects.requireNonNull(builder.bucketName, "bucketName is required");
this.bucketPath = java.util.Objects.requireNonNull(builder.bucketPath, "bucketPath is required");
this.endPoint = java.util.Objects.requireNonNull(builder.endPoint, "endPoint is required");
this.mountDir = java.util.Objects.requireNonNull(builder.mountDir, "mountDir is required");
this.readOnly = java.util.Objects.requireNonNull(builder.readOnly, "readOnly is required");
}
@Override
public final java.lang.Object getBucketName() {
return this.bucketName;
}
@Override
public final java.lang.Object getBucketPath() {
return this.bucketPath;
}
@Override
public final java.lang.Object getEndPoint() {
return this.endPoint;
}
@Override
public final java.lang.Object getMountDir() {
return this.mountDir;
}
@Override
public final java.lang.Object getReadOnly() {
return this.readOnly;
}
@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("bucketName", om.valueToTree(this.getBucketName()));
data.set("bucketPath", om.valueToTree(this.getBucketPath()));
data.set("endPoint", om.valueToTree(this.getEndPoint()));
data.set("mountDir", om.valueToTree(this.getMountDir()));
data.set("readOnly", om.valueToTree(this.getReadOnly()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.OssMountConfigMountPointsProperty"));
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;
OssMountConfigMountPointsProperty.Jsii$Proxy that = (OssMountConfigMountPointsProperty.Jsii$Proxy) o;
if (!bucketName.equals(that.bucketName)) return false;
if (!bucketPath.equals(that.bucketPath)) return false;
if (!endPoint.equals(that.endPoint)) return false;
if (!mountDir.equals(that.mountDir)) return false;
return this.readOnly.equals(that.readOnly);
}
@Override
public final int hashCode() {
int result = this.bucketName.hashCode();
result = 31 * result + (this.bucketPath.hashCode());
result = 31 * result + (this.endPoint.hashCode());
result = 31 * result + (this.mountDir.hashCode());
result = 31 * result + (this.readOnly.hashCode());
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.OssMountConfigProperty")
@software.amazon.jsii.Jsii.Proxy(OssMountConfigProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface OssMountConfigProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getMountPoints();
/**
* @return a {@link Builder} of {@link OssMountConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link OssMountConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object mountPoints;
/**
* Sets the value of {@link OssMountConfigProperty#getMountPoints}
* @param mountPoints the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountPoints(com.aliyun.ros.cdk.core.IResolvable mountPoints) {
this.mountPoints = mountPoints;
return this;
}
/**
* Sets the value of {@link OssMountConfigProperty#getMountPoints}
* @param mountPoints the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mountPoints(java.util.List extends java.lang.Object> mountPoints) {
this.mountPoints = mountPoints;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link OssMountConfigProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public OssMountConfigProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link OssMountConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements OssMountConfigProperty {
private final java.lang.Object mountPoints;
/**
* 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.mountPoints = software.amazon.jsii.Kernel.get(this, "mountPoints", 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.mountPoints = java.util.Objects.requireNonNull(builder.mountPoints, "mountPoints is required");
}
@Override
public final java.lang.Object getMountPoints() {
return this.mountPoints;
}
@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("mountPoints", om.valueToTree(this.getMountPoints()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.OssMountConfigProperty"));
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;
OssMountConfigProperty.Jsii$Proxy that = (OssMountConfigProperty.Jsii$Proxy) o;
return this.mountPoints.equals(that.mountPoints);
}
@Override
public final int hashCode() {
int result = this.mountPoints.hashCode();
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.TagsProperty")
@software.amazon.jsii.Jsii.Proxy(TagsProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface TagsProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getKey();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getValue() {
return null;
}
/**
* @return a {@link Builder} of {@link TagsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link TagsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object key;
java.lang.Object value;
/**
* Sets the value of {@link TagsProperty#getKey}
* @param key the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder key(java.lang.String key) {
this.key = key;
return this;
}
/**
* Sets the value of {@link TagsProperty#getKey}
* @param key the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder key(com.aliyun.ros.cdk.core.IResolvable key) {
this.key = key;
return this;
}
/**
* Sets the value of {@link TagsProperty#getValue}
* @param value the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder value(java.lang.String value) {
this.value = value;
return this;
}
/**
* Sets the value of {@link TagsProperty#getValue}
* @param value the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder value(com.aliyun.ros.cdk.core.IResolvable value) {
this.value = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link TagsProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public TagsProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link TagsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TagsProperty {
private final java.lang.Object key;
private final java.lang.Object value;
/**
* 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.key = software.amazon.jsii.Kernel.get(this, "key", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.value = software.amazon.jsii.Kernel.get(this, "value", 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.key = java.util.Objects.requireNonNull(builder.key, "key is required");
this.value = builder.value;
}
@Override
public final java.lang.Object getKey() {
return this.key;
}
@Override
public final java.lang.Object getValue() {
return this.value;
}
@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("key", om.valueToTree(this.getKey()));
if (this.getValue() != null) {
data.set("value", om.valueToTree(this.getValue()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.TagsProperty"));
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;
TagsProperty.Jsii$Proxy that = (TagsProperty.Jsii$Proxy) o;
if (!key.equals(that.key)) return false;
return this.value != null ? this.value.equals(that.value) : that.value == null;
}
@Override
public final int hashCode() {
int result = this.key.hashCode();
result = 31 * result + (this.value != null ? this.value.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.TracingConfigProperty")
@software.amazon.jsii.Jsii.Proxy(TracingConfigProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface TracingConfigProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getParams() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getType() {
return null;
}
/**
* @return a {@link Builder} of {@link TracingConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link TracingConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object params;
java.lang.Object type;
/**
* Sets the value of {@link TracingConfigProperty#getParams}
* @param params the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder params(com.aliyun.ros.cdk.core.IResolvable params) {
this.params = params;
return this;
}
/**
* Sets the value of {@link TracingConfigProperty#getParams}
* @param params the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder params(java.util.Map params) {
this.params = params;
return this;
}
/**
* Sets the value of {@link TracingConfigProperty#getType}
* @param type the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder type(java.lang.String type) {
this.type = type;
return this;
}
/**
* Sets the value of {@link TracingConfigProperty#getType}
* @param type the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder type(com.aliyun.ros.cdk.core.IResolvable type) {
this.type = type;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link TracingConfigProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public TracingConfigProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link TracingConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TracingConfigProperty {
private final java.lang.Object params;
private final java.lang.Object type;
/**
* 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.params = software.amazon.jsii.Kernel.get(this, "params", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.type = software.amazon.jsii.Kernel.get(this, "type", 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.params = builder.params;
this.type = builder.type;
}
@Override
public final java.lang.Object getParams() {
return this.params;
}
@Override
public final java.lang.Object getType() {
return this.type;
}
@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.getParams() != null) {
data.set("params", om.valueToTree(this.getParams()));
}
if (this.getType() != null) {
data.set("type", om.valueToTree(this.getType()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.TracingConfigProperty"));
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;
TracingConfigProperty.Jsii$Proxy that = (TracingConfigProperty.Jsii$Proxy) o;
if (this.params != null ? !this.params.equals(that.params) : that.params != null) return false;
return this.type != null ? this.type.equals(that.type) : that.type == null;
}
@Override
public final int hashCode() {
int result = this.params != null ? this.params.hashCode() : 0;
result = 31 * result + (this.type != null ? this.type.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.RosService.VpcConfigProperty")
@software.amazon.jsii.Jsii.Proxy(VpcConfigProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface VpcConfigProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getSecurityGroupId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getVpcId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getVSwitchIds();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getZoneId() {
return null;
}
/**
* @return a {@link Builder} of {@link VpcConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link VpcConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object securityGroupId;
java.lang.Object vpcId;
java.lang.Object vSwitchIds;
java.lang.Object zoneId;
/**
* Sets the value of {@link VpcConfigProperty#getSecurityGroupId}
* @param securityGroupId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder securityGroupId(java.lang.String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getSecurityGroupId}
* @param securityGroupId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder securityGroupId(com.aliyun.ros.cdk.core.IResolvable securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getVpcId}
* @param vpcId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vpcId(java.lang.String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getVpcId}
* @param vpcId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getVSwitchIds}
* @param vSwitchIds the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vSwitchIds(com.aliyun.ros.cdk.core.IResolvable vSwitchIds) {
this.vSwitchIds = vSwitchIds;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getVSwitchIds}
* @param vSwitchIds the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vSwitchIds(java.util.List extends java.lang.Object> vSwitchIds) {
this.vSwitchIds = vSwitchIds;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getZoneId}
* @param zoneId the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder zoneId(java.lang.String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* Sets the value of {@link VpcConfigProperty#getZoneId}
* @param zoneId the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder zoneId(com.aliyun.ros.cdk.core.IResolvable zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link VpcConfigProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public VpcConfigProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link VpcConfigProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements VpcConfigProperty {
private final java.lang.Object securityGroupId;
private final java.lang.Object vpcId;
private final java.lang.Object vSwitchIds;
private final java.lang.Object zoneId;
/**
* 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.securityGroupId = software.amazon.jsii.Kernel.get(this, "securityGroupId", 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.vSwitchIds = software.amazon.jsii.Kernel.get(this, "vSwitchIds", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.zoneId = software.amazon.jsii.Kernel.get(this, "zoneId", 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.securityGroupId = java.util.Objects.requireNonNull(builder.securityGroupId, "securityGroupId is required");
this.vpcId = java.util.Objects.requireNonNull(builder.vpcId, "vpcId is required");
this.vSwitchIds = java.util.Objects.requireNonNull(builder.vSwitchIds, "vSwitchIds is required");
this.zoneId = builder.zoneId;
}
@Override
public final java.lang.Object getSecurityGroupId() {
return this.securityGroupId;
}
@Override
public final java.lang.Object getVpcId() {
return this.vpcId;
}
@Override
public final java.lang.Object getVSwitchIds() {
return this.vSwitchIds;
}
@Override
public final java.lang.Object getZoneId() {
return this.zoneId;
}
@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("securityGroupId", om.valueToTree(this.getSecurityGroupId()));
data.set("vpcId", om.valueToTree(this.getVpcId()));
data.set("vSwitchIds", om.valueToTree(this.getVSwitchIds()));
if (this.getZoneId() != null) {
data.set("zoneId", om.valueToTree(this.getZoneId()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.RosService.VpcConfigProperty"));
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;
VpcConfigProperty.Jsii$Proxy that = (VpcConfigProperty.Jsii$Proxy) o;
if (!securityGroupId.equals(that.securityGroupId)) return false;
if (!vpcId.equals(that.vpcId)) return false;
if (!vSwitchIds.equals(that.vSwitchIds)) return false;
return this.zoneId != null ? this.zoneId.equals(that.zoneId) : that.zoneId == null;
}
@Override
public final int hashCode() {
int result = this.securityGroupId.hashCode();
result = 31 * result + (this.vpcId.hashCode());
result = 31 * result + (this.vSwitchIds.hashCode());
result = 31 * result + (this.zoneId != null ? this.zoneId.hashCode() : 0);
return result;
}
}
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.fc.RosService}.
*/
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - scope in which this resource is defined.
This parameter is required.
* @param id - scoped id of the resource.
This parameter is required.
* @param enableResourcePropertyConstraint This parameter is required.
*/
public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) {
return new Builder(scope, id, enableResourcePropertyConstraint);
}
private final com.aliyun.ros.cdk.core.Construct scope;
private final java.lang.String id;
private final java.lang.Boolean enableResourcePropertyConstraint;
private final com.aliyun.ros.cdk.fc.RosServiceProps.Builder props;
private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) {
this.scope = scope;
this.id = id;
this.enableResourcePropertyConstraint = enableResourcePropertyConstraint;
this.props = new com.aliyun.ros.cdk.fc.RosServiceProps.Builder();
}
/**
* @return {@code this}
* @param serviceName This parameter is required.
*/
public Builder serviceName(final java.lang.String serviceName) {
this.props.serviceName(serviceName);
return this;
}
/**
* @return {@code this}
* @param serviceName This parameter is required.
*/
public Builder serviceName(final com.aliyun.ros.cdk.core.IResolvable serviceName) {
this.props.serviceName(serviceName);
return this;
}
/**
* @return {@code this}
* @param deletionForce This parameter is required.
*/
public Builder deletionForce(final java.lang.Boolean deletionForce) {
this.props.deletionForce(deletionForce);
return this;
}
/**
* @return {@code this}
* @param deletionForce This parameter is required.
*/
public Builder deletionForce(final com.aliyun.ros.cdk.core.IResolvable deletionForce) {
this.props.deletionForce(deletionForce);
return this;
}
/**
* @return {@code this}
* @param description This parameter is required.
*/
public Builder description(final java.lang.String description) {
this.props.description(description);
return this;
}
/**
* @return {@code this}
* @param description This parameter is required.
*/
public Builder description(final com.aliyun.ros.cdk.core.IResolvable description) {
this.props.description(description);
return this;
}
/**
* @return {@code this}
* @param internetAccess This parameter is required.
*/
public Builder internetAccess(final java.lang.Boolean internetAccess) {
this.props.internetAccess(internetAccess);
return this;
}
/**
* @return {@code this}
* @param internetAccess This parameter is required.
*/
public Builder internetAccess(final com.aliyun.ros.cdk.core.IResolvable internetAccess) {
this.props.internetAccess(internetAccess);
return this;
}
/**
* @return {@code this}
* @param logConfig This parameter is required.
*/
public Builder logConfig(final com.aliyun.ros.cdk.core.IResolvable logConfig) {
this.props.logConfig(logConfig);
return this;
}
/**
* @return {@code this}
* @param logConfig This parameter is required.
*/
public Builder logConfig(final com.aliyun.ros.cdk.fc.RosService.LogConfigProperty logConfig) {
this.props.logConfig(logConfig);
return this;
}
/**
* @return {@code this}
* @param nasConfig This parameter is required.
*/
public Builder nasConfig(final com.aliyun.ros.cdk.core.IResolvable nasConfig) {
this.props.nasConfig(nasConfig);
return this;
}
/**
* @return {@code this}
* @param nasConfig This parameter is required.
*/
public Builder nasConfig(final com.aliyun.ros.cdk.fc.RosService.NasConfigProperty nasConfig) {
this.props.nasConfig(nasConfig);
return this;
}
/**
* @return {@code this}
* @param ossMountConfig This parameter is required.
*/
public Builder ossMountConfig(final com.aliyun.ros.cdk.core.IResolvable ossMountConfig) {
this.props.ossMountConfig(ossMountConfig);
return this;
}
/**
* @return {@code this}
* @param ossMountConfig This parameter is required.
*/
public Builder ossMountConfig(final com.aliyun.ros.cdk.fc.RosService.OssMountConfigProperty ossMountConfig) {
this.props.ossMountConfig(ossMountConfig);
return this;
}
/**
* @return {@code this}
* @param role This parameter is required.
*/
public Builder role(final java.lang.String role) {
this.props.role(role);
return this;
}
/**
* @return {@code this}
* @param role This parameter is required.
*/
public Builder role(final com.aliyun.ros.cdk.core.IResolvable role) {
this.props.role(role);
return this;
}
/**
* @return {@code this}
* @param tags This parameter is required.
*/
public Builder tags(final java.util.List extends com.aliyun.ros.cdk.fc.RosService.TagsProperty> tags) {
this.props.tags(tags);
return this;
}
/**
* @return {@code this}
* @param tracingConfig This parameter is required.
*/
public Builder tracingConfig(final com.aliyun.ros.cdk.core.IResolvable tracingConfig) {
this.props.tracingConfig(tracingConfig);
return this;
}
/**
* @return {@code this}
* @param tracingConfig This parameter is required.
*/
public Builder tracingConfig(final com.aliyun.ros.cdk.fc.RosService.TracingConfigProperty tracingConfig) {
this.props.tracingConfig(tracingConfig);
return this;
}
/**
* @return {@code this}
* @param vpcBindings This parameter is required.
*/
public Builder vpcBindings(final com.aliyun.ros.cdk.core.IResolvable vpcBindings) {
this.props.vpcBindings(vpcBindings);
return this;
}
/**
* @return {@code this}
* @param vpcBindings This parameter is required.
*/
public Builder vpcBindings(final java.util.List extends java.lang.Object> vpcBindings) {
this.props.vpcBindings(vpcBindings);
return this;
}
/**
* @return {@code this}
* @param vpcConfig This parameter is required.
*/
public Builder vpcConfig(final com.aliyun.ros.cdk.core.IResolvable vpcConfig) {
this.props.vpcConfig(vpcConfig);
return this;
}
/**
* @return {@code this}
* @param vpcConfig This parameter is required.
*/
public Builder vpcConfig(final com.aliyun.ros.cdk.fc.RosService.VpcConfigProperty vpcConfig) {
this.props.vpcConfig(vpcConfig);
return this;
}
/**
* @return a newly built instance of {@link com.aliyun.ros.cdk.fc.RosService}.
*/
@Override
public com.aliyun.ros.cdk.fc.RosService build() {
return new com.aliyun.ros.cdk.fc.RosService(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy