com.aliyun.ros.cdk.nas.MountTarget Maven / Gradle / Ivy
Show all versions of ros-cdk-nas Show documentation
package com.aliyun.ros.cdk.nas;
/**
* This class encapsulates and extends the ROS resource type ALIYUN::NAS::MountTarget
, which is used to create a mount target.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:09.515Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.nas.$Module.class, fqn = "@alicloud/ros-cdk-nas.MountTarget")
public class MountTarget extends com.aliyun.ros.cdk.core.Resource {
protected MountTarget(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected MountTarget(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
* @param enableResourcePropertyConstraint
*/
public MountTarget(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.nas.MountTargetProps props, final @org.jetbrains.annotations.Nullable 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"), enableResourcePropertyConstraint });
}
/**
* Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
public MountTarget(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.nas.MountTargetProps props) {
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") });
}
/**
* Attribute MountTargetDomain: Mount point domain name.
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrMountTargetDomain() {
return software.amazon.jsii.Kernel.get(this, "attrMountTargetDomain", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
protected @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));
}
protected 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"));
}
protected @org.jetbrains.annotations.NotNull java.lang.String getId() {
return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
protected void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required"));
}
protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.nas.MountTargetProps getProps() {
return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.nas.MountTargetProps.class));
}
protected void setProps(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.nas.MountTargetProps value) {
software.amazon.jsii.Kernel.set(this, "props", java.util.Objects.requireNonNull(value, "props is required"));
}
protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct getScope() {
return software.amazon.jsii.Kernel.get(this, "scope", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.Construct.class));
}
protected void setScope(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct value) {
software.amazon.jsii.Kernel.set(this, "scope", java.util.Objects.requireNonNull(value, "scope is required"));
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.nas.MountTarget}.
*/
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
* @param enableResourcePropertyConstraint
*/
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);
}
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id, null);
}
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.nas.MountTargetProps.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.nas.MountTargetProps.Builder();
}
/**
* Property accessGroupName: Permission group name.
*
* Default to DEFAULT_VPC_GROUP_NAME.
*
* @return {@code this}
* @param accessGroupName Property accessGroupName: Permission group name. This parameter is required.
*/
public Builder accessGroupName(final java.lang.String accessGroupName) {
this.props.accessGroupName(accessGroupName);
return this;
}
/**
* Property accessGroupName: Permission group name.
*
* Default to DEFAULT_VPC_GROUP_NAME.
*
* @return {@code this}
* @param accessGroupName Property accessGroupName: Permission group name. This parameter is required.
*/
public Builder accessGroupName(final com.aliyun.ros.cdk.core.IResolvable accessGroupName) {
this.props.accessGroupName(accessGroupName);
return this;
}
/**
* Property fileSystemId: File system ID.
*
* @return {@code this}
* @param fileSystemId Property fileSystemId: File system ID. This parameter is required.
*/
public Builder fileSystemId(final java.lang.String fileSystemId) {
this.props.fileSystemId(fileSystemId);
return this;
}
/**
* Property fileSystemId: File system ID.
*
* @return {@code this}
* @param fileSystemId Property fileSystemId: File system ID. This parameter is required.
*/
public Builder fileSystemId(final com.aliyun.ros.cdk.core.IResolvable fileSystemId) {
this.props.fileSystemId(fileSystemId);
return this;
}
/**
* Property networkType: Network type, including Vpc and Classic networks.
*
* @return {@code this}
* @param networkType Property networkType: Network type, including Vpc and Classic networks. This parameter is required.
*/
public Builder networkType(final java.lang.String networkType) {
this.props.networkType(networkType);
return this;
}
/**
* Property networkType: Network type, including Vpc and Classic networks.
*
* @return {@code this}
* @param networkType Property networkType: Network type, including Vpc and Classic networks. This parameter is required.
*/
public Builder networkType(final com.aliyun.ros.cdk.core.IResolvable networkType) {
this.props.networkType(networkType);
return this;
}
/**
* Property enableIpv6: Whether to create an IPv6 mount point.Value: true: create false (default): do not create Note Currently, only the ultra-fast NAS in mainland China supports the IPv6 function, and the file system needs to enable the IPv6 function.
*
* @return {@code this}
* @param enableIpv6 Property enableIpv6: Whether to create an IPv6 mount point.Value: true: create false (default): do not create Note Currently, only the ultra-fast NAS in mainland China supports the IPv6 function, and the file system needs to enable the IPv6 function. This parameter is required.
*/
public Builder enableIpv6(final java.lang.Boolean enableIpv6) {
this.props.enableIpv6(enableIpv6);
return this;
}
/**
* Property enableIpv6: Whether to create an IPv6 mount point.Value: true: create false (default): do not create Note Currently, only the ultra-fast NAS in mainland China supports the IPv6 function, and the file system needs to enable the IPv6 function.
*
* @return {@code this}
* @param enableIpv6 Property enableIpv6: Whether to create an IPv6 mount point.Value: true: create false (default): do not create Note Currently, only the ultra-fast NAS in mainland China supports the IPv6 function, and the file system needs to enable the IPv6 function. This parameter is required.
*/
public Builder enableIpv6(final com.aliyun.ros.cdk.core.IResolvable enableIpv6) {
this.props.enableIpv6(enableIpv6);
return this;
}
/**
* Property securityGroupId: Security group Id.
*
* @return {@code this}
* @param securityGroupId Property securityGroupId: Security group Id. This parameter is required.
*/
public Builder securityGroupId(final java.lang.String securityGroupId) {
this.props.securityGroupId(securityGroupId);
return this;
}
/**
* Property securityGroupId: Security group Id.
*
* @return {@code this}
* @param securityGroupId Property securityGroupId: Security group Id. This parameter is required.
*/
public Builder securityGroupId(final com.aliyun.ros.cdk.core.IResolvable securityGroupId) {
this.props.securityGroupId(securityGroupId);
return this;
}
/**
* Property status: Status, including Active and Inactive.
*
* @return {@code this}
* @param status Property status: Status, including Active and Inactive. This parameter is required.
*/
public Builder status(final java.lang.String status) {
this.props.status(status);
return this;
}
/**
* Property status: Status, including Active and Inactive.
*
* @return {@code this}
* @param status Property status: Status, including Active and Inactive. This parameter is required.
*/
public Builder status(final com.aliyun.ros.cdk.core.IResolvable status) {
this.props.status(status);
return this;
}
/**
* Property vpcId: VPC network ID.
*
* @return {@code this}
* @param vpcId Property vpcId: VPC network ID. This parameter is required.
*/
public Builder vpcId(final java.lang.String vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* Property vpcId: VPC network ID.
*
* @return {@code this}
* @param vpcId Property vpcId: VPC network ID. This parameter is required.
*/
public Builder vpcId(final com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* Property vSwitchId: VSwitch ID.
*
* @return {@code this}
* @param vSwitchId Property vSwitchId: VSwitch ID. This parameter is required.
*/
public Builder vSwitchId(final java.lang.String vSwitchId) {
this.props.vSwitchId(vSwitchId);
return this;
}
/**
* Property vSwitchId: VSwitch ID.
*
* @return {@code this}
* @param vSwitchId Property vSwitchId: VSwitch ID. This parameter is required.
*/
public Builder vSwitchId(final com.aliyun.ros.cdk.core.IResolvable vSwitchId) {
this.props.vSwitchId(vSwitchId);
return this;
}
/**
* @return a newly built instance of {@link com.aliyun.ros.cdk.nas.MountTarget}.
*/
@Override
public com.aliyun.ros.cdk.nas.MountTarget build() {
return new com.aliyun.ros.cdk.nas.MountTarget(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}