Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.alicloud.cassandra.ClusterArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.cassandra;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ClusterArgs extends com.pulumi.resources.ResourceArgs {
public static final ClusterArgs Empty = new ClusterArgs();
/**
* Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when pay_type = PrePaid.
*
*/
@Import(name="autoRenew")
private @Nullable Output autoRenew;
/**
* @return Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when pay_type = PrePaid.
*
*/
public Optional> autoRenew() {
return Optional.ofNullable(this.autoRenew);
}
/**
* Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when pay_type = Subscription. Unit: month.
*
*/
@Import(name="autoRenewPeriod")
private @Nullable Output autoRenewPeriod;
/**
* @return Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when pay_type = Subscription. Unit: month.
*
*/
public Optional> autoRenewPeriod() {
return Optional.ofNullable(this.autoRenewPeriod);
}
/**
* Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
*/
@Import(name="clusterName")
private @Nullable Output clusterName;
/**
* @return Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
*/
public Optional> clusterName() {
return Optional.ofNullable(this.clusterName);
}
/**
* Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
*/
@Import(name="dataCenterName")
private @Nullable Output dataCenterName;
/**
* @return Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
*/
public Optional> dataCenterName() {
return Optional.ofNullable(this.dataCenterName);
}
/**
* User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
* - Custom storage space; value range: [160, 2000].
* - 80-GB increments.
*
*/
@Import(name="diskSize")
private @Nullable Output diskSize;
/**
* @return User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
* - Custom storage space; value range: [160, 2000].
* - 80-GB increments.
*
*/
public Optional> diskSize() {
return Optional.ofNullable(this.diskSize);
}
/**
* The disk type of Cassandra dataCenter-1. Valid values are `cloud_ssd`, `cloud_efficiency`, `local_hdd_pro`, `local_ssd_pro`, local_disk size is fixed.
*
*/
@Import(name="diskType")
private @Nullable Output diskType;
/**
* @return The disk type of Cassandra dataCenter-1. Valid values are `cloud_ssd`, `cloud_efficiency`, `local_hdd_pro`, `local_ssd_pro`, local_disk size is fixed.
*
*/
public Optional> diskType() {
return Optional.ofNullable(this.diskType);
}
@Import(name="enablePublic")
private @Nullable Output enablePublic;
public Optional> enablePublic() {
return Optional.ofNullable(this.enablePublic);
}
/**
* Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
*
*/
@Import(name="instanceType", required=true)
private Output instanceType;
/**
* @return Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
*
*/
public Output instanceType() {
return this.instanceType;
}
/**
* Set the instance's IP whitelist in VPC network.
*
*/
@Import(name="ipWhite")
private @Nullable Output ipWhite;
/**
* @return Set the instance's IP whitelist in VPC network.
*
*/
public Optional> ipWhite() {
return Optional.ofNullable(this.ipWhite);
}
/**
* The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
*/
@Import(name="maintainEndTime")
private @Nullable Output maintainEndTime;
/**
* @return The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
*/
public Optional> maintainEndTime() {
return Optional.ofNullable(this.maintainEndTime);
}
/**
* The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
*/
@Import(name="maintainStartTime")
private @Nullable Output maintainStartTime;
/**
* @return The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
*/
public Optional> maintainStartTime() {
return Optional.ofNullable(this.maintainStartTime);
}
/**
* Cassandra major version. Now only support version `3.11`.
*
*/
@Import(name="majorVersion", required=true)
private Output majorVersion;
/**
* @return Cassandra major version. Now only support version `3.11`.
*
*/
public Output majorVersion() {
return this.majorVersion;
}
/**
* The node count of Cassandra dataCenter-1 default to 2.
*
*/
@Import(name="nodeCount", required=true)
private Output nodeCount;
/**
* @return The node count of Cassandra dataCenter-1 default to 2.
*
*/
public Output nodeCount() {
return this.nodeCount;
}
@Import(name="password")
private @Nullable Output password;
public Optional> password() {
return Optional.ofNullable(this.password);
}
/**
* The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
*
*/
@Import(name="payType", required=true)
private Output payType;
/**
* @return The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
*
*/
public Output payType() {
return this.payType;
}
@Import(name="period")
private @Nullable Output period;
public Optional> period() {
return Optional.ofNullable(this.period);
}
@Import(name="periodUnit")
private @Nullable Output periodUnit;
public Optional> periodUnit() {
return Optional.ofNullable(this.periodUnit);
}
/**
* A list of security group ids to associate with.
*
* > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
*
*/
@Import(name="securityGroups")
private @Nullable Output> securityGroups;
/**
* @return A list of security group ids to associate with.
*
* > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
*
*/
public Optional>> securityGroups() {
return Optional.ofNullable(this.securityGroups);
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* The vswitch_id of dataCenter-1, can not empty.
*
*/
@Import(name="vswitchId", required=true)
private Output vswitchId;
/**
* @return The vswitch_id of dataCenter-1, can not empty.
*
*/
public Output vswitchId() {
return this.vswitchId;
}
/**
* The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
*
*/
@Import(name="zoneId")
private @Nullable Output zoneId;
/**
* @return The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
*
*/
public Optional> zoneId() {
return Optional.ofNullable(this.zoneId);
}
private ClusterArgs() {}
private ClusterArgs(ClusterArgs $) {
this.autoRenew = $.autoRenew;
this.autoRenewPeriod = $.autoRenewPeriod;
this.clusterName = $.clusterName;
this.dataCenterName = $.dataCenterName;
this.diskSize = $.diskSize;
this.diskType = $.diskType;
this.enablePublic = $.enablePublic;
this.instanceType = $.instanceType;
this.ipWhite = $.ipWhite;
this.maintainEndTime = $.maintainEndTime;
this.maintainStartTime = $.maintainStartTime;
this.majorVersion = $.majorVersion;
this.nodeCount = $.nodeCount;
this.password = $.password;
this.payType = $.payType;
this.period = $.period;
this.periodUnit = $.periodUnit;
this.securityGroups = $.securityGroups;
this.tags = $.tags;
this.vswitchId = $.vswitchId;
this.zoneId = $.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ClusterArgs $;
public Builder() {
$ = new ClusterArgs();
}
public Builder(ClusterArgs defaults) {
$ = new ClusterArgs(Objects.requireNonNull(defaults));
}
/**
* @param autoRenew Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when pay_type = PrePaid.
*
* @return builder
*
*/
public Builder autoRenew(@Nullable Output autoRenew) {
$.autoRenew = autoRenew;
return this;
}
/**
* @param autoRenew Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when pay_type = PrePaid.
*
* @return builder
*
*/
public Builder autoRenew(Boolean autoRenew) {
return autoRenew(Output.of(autoRenew));
}
/**
* @param autoRenewPeriod Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when pay_type = Subscription. Unit: month.
*
* @return builder
*
*/
public Builder autoRenewPeriod(@Nullable Output autoRenewPeriod) {
$.autoRenewPeriod = autoRenewPeriod;
return this;
}
/**
* @param autoRenewPeriod Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when pay_type = Subscription. Unit: month.
*
* @return builder
*
*/
public Builder autoRenewPeriod(Integer autoRenewPeriod) {
return autoRenewPeriod(Output.of(autoRenewPeriod));
}
/**
* @param clusterName Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
* @return builder
*
*/
public Builder clusterName(@Nullable Output clusterName) {
$.clusterName = clusterName;
return this;
}
/**
* @param clusterName Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
* @return builder
*
*/
public Builder clusterName(String clusterName) {
return clusterName(Output.of(clusterName));
}
/**
* @param dataCenterName Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
* @return builder
*
*/
public Builder dataCenterName(@Nullable Output dataCenterName) {
$.dataCenterName = dataCenterName;
return this;
}
/**
* @param dataCenterName Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
*
* @return builder
*
*/
public Builder dataCenterName(String dataCenterName) {
return dataCenterName(Output.of(dataCenterName));
}
/**
* @param diskSize User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
* - Custom storage space; value range: [160, 2000].
* - 80-GB increments.
*
* @return builder
*
*/
public Builder diskSize(@Nullable Output diskSize) {
$.diskSize = diskSize;
return this;
}
/**
* @param diskSize User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
* - Custom storage space; value range: [160, 2000].
* - 80-GB increments.
*
* @return builder
*
*/
public Builder diskSize(Integer diskSize) {
return diskSize(Output.of(diskSize));
}
/**
* @param diskType The disk type of Cassandra dataCenter-1. Valid values are `cloud_ssd`, `cloud_efficiency`, `local_hdd_pro`, `local_ssd_pro`, local_disk size is fixed.
*
* @return builder
*
*/
public Builder diskType(@Nullable Output diskType) {
$.diskType = diskType;
return this;
}
/**
* @param diskType The disk type of Cassandra dataCenter-1. Valid values are `cloud_ssd`, `cloud_efficiency`, `local_hdd_pro`, `local_ssd_pro`, local_disk size is fixed.
*
* @return builder
*
*/
public Builder diskType(String diskType) {
return diskType(Output.of(diskType));
}
public Builder enablePublic(@Nullable Output enablePublic) {
$.enablePublic = enablePublic;
return this;
}
public Builder enablePublic(Boolean enablePublic) {
return enablePublic(Output.of(enablePublic));
}
/**
* @param instanceType Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
*
* @return builder
*
*/
public Builder instanceType(Output instanceType) {
$.instanceType = instanceType;
return this;
}
/**
* @param instanceType Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
*
* @return builder
*
*/
public Builder instanceType(String instanceType) {
return instanceType(Output.of(instanceType));
}
/**
* @param ipWhite Set the instance's IP whitelist in VPC network.
*
* @return builder
*
*/
public Builder ipWhite(@Nullable Output ipWhite) {
$.ipWhite = ipWhite;
return this;
}
/**
* @param ipWhite Set the instance's IP whitelist in VPC network.
*
* @return builder
*
*/
public Builder ipWhite(String ipWhite) {
return ipWhite(Output.of(ipWhite));
}
/**
* @param maintainEndTime The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
* @return builder
*
*/
public Builder maintainEndTime(@Nullable Output maintainEndTime) {
$.maintainEndTime = maintainEndTime;
return this;
}
/**
* @param maintainEndTime The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
* @return builder
*
*/
public Builder maintainEndTime(String maintainEndTime) {
return maintainEndTime(Output.of(maintainEndTime));
}
/**
* @param maintainStartTime The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
* @return builder
*
*/
public Builder maintainStartTime(@Nullable Output maintainStartTime) {
$.maintainStartTime = maintainStartTime;
return this;
}
/**
* @param maintainStartTime The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
*
* @return builder
*
*/
public Builder maintainStartTime(String maintainStartTime) {
return maintainStartTime(Output.of(maintainStartTime));
}
/**
* @param majorVersion Cassandra major version. Now only support version `3.11`.
*
* @return builder
*
*/
public Builder majorVersion(Output majorVersion) {
$.majorVersion = majorVersion;
return this;
}
/**
* @param majorVersion Cassandra major version. Now only support version `3.11`.
*
* @return builder
*
*/
public Builder majorVersion(String majorVersion) {
return majorVersion(Output.of(majorVersion));
}
/**
* @param nodeCount The node count of Cassandra dataCenter-1 default to 2.
*
* @return builder
*
*/
public Builder nodeCount(Output nodeCount) {
$.nodeCount = nodeCount;
return this;
}
/**
* @param nodeCount The node count of Cassandra dataCenter-1 default to 2.
*
* @return builder
*
*/
public Builder nodeCount(Integer nodeCount) {
return nodeCount(Output.of(nodeCount));
}
public Builder password(@Nullable Output password) {
$.password = password;
return this;
}
public Builder password(String password) {
return password(Output.of(password));
}
/**
* @param payType The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
*
* @return builder
*
*/
public Builder payType(Output payType) {
$.payType = payType;
return this;
}
/**
* @param payType The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
*
* @return builder
*
*/
public Builder payType(String payType) {
return payType(Output.of(payType));
}
public Builder period(@Nullable Output period) {
$.period = period;
return this;
}
public Builder period(Integer period) {
return period(Output.of(period));
}
public Builder periodUnit(@Nullable Output periodUnit) {
$.periodUnit = periodUnit;
return this;
}
public Builder periodUnit(String periodUnit) {
return periodUnit(Output.of(periodUnit));
}
/**
* @param securityGroups A list of security group ids to associate with.
*
* > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
*
* @return builder
*
*/
public Builder securityGroups(@Nullable Output> securityGroups) {
$.securityGroups = securityGroups;
return this;
}
/**
* @param securityGroups A list of security group ids to associate with.
*
* > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
*
* @return builder
*
*/
public Builder securityGroups(List securityGroups) {
return securityGroups(Output.of(securityGroups));
}
/**
* @param securityGroups A list of security group ids to associate with.
*
* > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
*
* @return builder
*
*/
public Builder securityGroups(String... securityGroups) {
return securityGroups(List.of(securityGroups));
}
/**
* @param tags A mapping of tags to assign to the resource.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags A mapping of tags to assign to the resource.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param vswitchId The vswitch_id of dataCenter-1, can not empty.
*
* @return builder
*
*/
public Builder vswitchId(Output vswitchId) {
$.vswitchId = vswitchId;
return this;
}
/**
* @param vswitchId The vswitch_id of dataCenter-1, can not empty.
*
* @return builder
*
*/
public Builder vswitchId(String vswitchId) {
return vswitchId(Output.of(vswitchId));
}
/**
* @param zoneId The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
*
* @return builder
*
*/
public Builder zoneId(@Nullable Output zoneId) {
$.zoneId = zoneId;
return this;
}
/**
* @param zoneId The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
*
* @return builder
*
*/
public Builder zoneId(String zoneId) {
return zoneId(Output.of(zoneId));
}
public ClusterArgs build() {
if ($.instanceType == null) {
throw new MissingRequiredPropertyException("ClusterArgs", "instanceType");
}
if ($.majorVersion == null) {
throw new MissingRequiredPropertyException("ClusterArgs", "majorVersion");
}
if ($.nodeCount == null) {
throw new MissingRequiredPropertyException("ClusterArgs", "nodeCount");
}
if ($.payType == null) {
throw new MissingRequiredPropertyException("ClusterArgs", "payType");
}
if ($.vswitchId == null) {
throw new MissingRequiredPropertyException("ClusterArgs", "vswitchId");
}
return $;
}
}
}