com.aliyun.ros.cdk.uis.RosUisNode Maven / Gradle / Ivy
Show all versions of ros-cdk-uis Show documentation
package com.aliyun.ros.cdk.uis;
/**
* A ROS template type: `ALIYUN::UIS::UisNode`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.17.1 (build 2bac5fd)", date = "2021-02-02T11:13:44.096Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.uis.$Module.class, fqn = "@alicloud/ros-cdk-uis.RosUisNode")
public class RosUisNode extends com.aliyun.ros.cdk.core.RosResource {
protected RosUisNode(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RosUisNode(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.uis.RosUisNode.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Create a new `ALIYUN::UIS::UisNode`.
*
* @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 RosUisNode(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.uis.RosUisNodeProps 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 java.lang.Object getAttrUisNodeActiveIps() {
return software.amazon.jsii.Kernel.get(this, "attrUisNodeActiveIps", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getAttrUisNodeId() {
return software.amazon.jsii.Kernel.get(this, "attrUisNodeId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getAttrUisNodeIps() {
return software.amazon.jsii.Kernel.get(this, "attrUisNodeIps", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.Number getIpAddrsNum() {
return software.amazon.jsii.Kernel.get(this, "ipAddrsNum", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
*/
public void setIpAddrsNum(final @org.jetbrains.annotations.NotNull java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "ipAddrsNum", java.util.Objects.requireNonNull(value, "ipAddrsNum is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.String getUisId() {
return software.amazon.jsii.Kernel.get(this, "uisId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
public void setUisId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "uisId", java.util.Objects.requireNonNull(value, "uisId is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.String getUisNodeAreaId() {
return software.amazon.jsii.Kernel.get(this, "uisNodeAreaId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
public void setUisNodeAreaId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "uisNodeAreaId", java.util.Objects.requireNonNull(value, "uisNodeAreaId is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Number getUisNodeBandwidth() {
return software.amazon.jsii.Kernel.get(this, "uisNodeBandwidth", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
*/
public void setUisNodeBandwidth(final @org.jetbrains.annotations.NotNull java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "uisNodeBandwidth", java.util.Objects.requireNonNull(value, "uisNodeBandwidth is required"));
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.String getDescription() {
return software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
public void setDescription(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "description", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.String getName() {
return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
public void setName(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "name", value);
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.uis.RosUisNode}.
*/
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.uis.RosUisNodeProps.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.uis.RosUisNodeProps.Builder();
}
/**
* @return {@code this}
* @param ipAddrsNum This parameter is required.
*/
public Builder ipAddrsNum(final java.lang.Number ipAddrsNum) {
this.props.ipAddrsNum(ipAddrsNum);
return this;
}
/**
* @return {@code this}
* @param uisId This parameter is required.
*/
public Builder uisId(final java.lang.String uisId) {
this.props.uisId(uisId);
return this;
}
/**
* @return {@code this}
* @param uisNodeAreaId This parameter is required.
*/
public Builder uisNodeAreaId(final java.lang.String uisNodeAreaId) {
this.props.uisNodeAreaId(uisNodeAreaId);
return this;
}
/**
* @return {@code this}
* @param uisNodeBandwidth This parameter is required.
*/
public Builder uisNodeBandwidth(final java.lang.Number uisNodeBandwidth) {
this.props.uisNodeBandwidth(uisNodeBandwidth);
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 name This parameter is required.
*/
public Builder name(final java.lang.String name) {
this.props.name(name);
return this;
}
/**
* @returns a newly built instance of {@link com.aliyun.ros.cdk.uis.RosUisNode}.
*/
@Override
public com.aliyun.ros.cdk.uis.RosUisNode build() {
return new com.aliyun.ros.cdk.uis.RosUisNode(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}