All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.cloudconnect.NetworkArgs 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.cloudconnect;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class NetworkArgs extends com.pulumi.resources.ResourceArgs {
public static final NetworkArgs Empty = new NetworkArgs();
/**
* The CidrBlock of the CCN instance. Defaults to null.
*
*/
@Import(name="cidrBlock")
private @Nullable Output cidrBlock;
/**
* @return The CidrBlock of the CCN instance. Defaults to null.
*
*/
public Optional> cidrBlock() {
return Optional.ofNullable(this.cidrBlock);
}
/**
* The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
*
*/
@Import(name="isDefault", required=true)
private Output isDefault;
/**
* @return Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
*
*/
public Output isDefault() {
return this.isDefault;
}
/**
* The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
private NetworkArgs() {}
private NetworkArgs(NetworkArgs $) {
this.cidrBlock = $.cidrBlock;
this.description = $.description;
this.isDefault = $.isDefault;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NetworkArgs $;
public Builder() {
$ = new NetworkArgs();
}
public Builder(NetworkArgs defaults) {
$ = new NetworkArgs(Objects.requireNonNull(defaults));
}
/**
* @param cidrBlock The CidrBlock of the CCN instance. Defaults to null.
*
* @return builder
*
*/
public Builder cidrBlock(@Nullable Output cidrBlock) {
$.cidrBlock = cidrBlock;
return this;
}
/**
* @param cidrBlock The CidrBlock of the CCN instance. Defaults to null.
*
* @return builder
*
*/
public Builder cidrBlock(String cidrBlock) {
return cidrBlock(Output.of(cidrBlock));
}
/**
* @param description The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param isDefault Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
*
* @return builder
*
*/
public Builder isDefault(Output isDefault) {
$.isDefault = isDefault;
return this;
}
/**
* @param isDefault Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
*
* @return builder
*
*/
public Builder isDefault(Boolean isDefault) {
return isDefault(Output.of(isDefault));
}
/**
* @param name The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public NetworkArgs build() {
if ($.isDefault == null) {
throw new MissingRequiredPropertyException("NetworkArgs", "isDefault");
}
return $;
}
}
}