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.oos.ParameterArgs 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.oos;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ParameterArgs extends com.pulumi.resources.ResourceArgs {
public static final ParameterArgs Empty = new ParameterArgs();
/**
* The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:
* * `AllowedValues`: The value that is allowed for the common parameter. It must be an array string.
* * `AllowedPattern`: The pattern that is allowed for the common parameter. It must be a regular expression.
* * `MinLength`: The minimum length of the common parameter.
* * `MaxLength`: The maximum length of the common parameter.
*
*/
@Import(name="constraints")
private @Nullable Output constraints;
/**
* @return The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:
* * `AllowedValues`: The value that is allowed for the common parameter. It must be an array string.
* * `AllowedPattern`: The pattern that is allowed for the common parameter. It must be a regular expression.
* * `MinLength`: The minimum length of the common parameter.
* * `MaxLength`: The maximum length of the common parameter.
*
*/
public Optional> constraints() {
return Optional.ofNullable(this.constraints);
}
/**
* The description of the common parameter. The description must be `1` to `200` characters in length.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return The description of the common parameter. The description must be `1` to `200` characters in length.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* The name of the common parameter. The name must be `2` to `180` characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start with `ALIYUN`, `ACS`, `ALIBABA`, `ALICLOUD`, or `OOS`.
*
*/
@Import(name="parameterName", required=true)
private Output parameterName;
/**
* @return The name of the common parameter. The name must be `2` to `180` characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start with `ALIYUN`, `ACS`, `ALIBABA`, `ALICLOUD`, or `OOS`.
*
*/
public Output parameterName() {
return this.parameterName;
}
/**
* The ID of the Resource Group.
*
*/
@Import(name="resourceGroupId")
private @Nullable Output resourceGroupId;
/**
* @return The ID of the Resource Group.
*
*/
public Optional> resourceGroupId() {
return Optional.ofNullable(this.resourceGroupId);
}
/**
* 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 data type of the common parameter. Valid values: `String` and `StringList`.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return The data type of the common parameter. Valid values: `String` and `StringList`.
*
*/
public Output type() {
return this.type;
}
/**
* The value of the common parameter. The value must be `1` to `4096` characters in length.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return The value of the common parameter. The value must be `1` to `4096` characters in length.
*
*/
public Output value() {
return this.value;
}
private ParameterArgs() {}
private ParameterArgs(ParameterArgs $) {
this.constraints = $.constraints;
this.description = $.description;
this.parameterName = $.parameterName;
this.resourceGroupId = $.resourceGroupId;
this.tags = $.tags;
this.type = $.type;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ParameterArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ParameterArgs $;
public Builder() {
$ = new ParameterArgs();
}
public Builder(ParameterArgs defaults) {
$ = new ParameterArgs(Objects.requireNonNull(defaults));
}
/**
* @param constraints The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:
* * `AllowedValues`: The value that is allowed for the common parameter. It must be an array string.
* * `AllowedPattern`: The pattern that is allowed for the common parameter. It must be a regular expression.
* * `MinLength`: The minimum length of the common parameter.
* * `MaxLength`: The maximum length of the common parameter.
*
* @return builder
*
*/
public Builder constraints(@Nullable Output constraints) {
$.constraints = constraints;
return this;
}
/**
* @param constraints The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:
* * `AllowedValues`: The value that is allowed for the common parameter. It must be an array string.
* * `AllowedPattern`: The pattern that is allowed for the common parameter. It must be a regular expression.
* * `MinLength`: The minimum length of the common parameter.
* * `MaxLength`: The maximum length of the common parameter.
*
* @return builder
*
*/
public Builder constraints(String constraints) {
return constraints(Output.of(constraints));
}
/**
* @param description The description of the common parameter. The description must be `1` to `200` characters in length.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description The description of the common parameter. The description must be `1` to `200` characters in length.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param parameterName The name of the common parameter. The name must be `2` to `180` characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start with `ALIYUN`, `ACS`, `ALIBABA`, `ALICLOUD`, or `OOS`.
*
* @return builder
*
*/
public Builder parameterName(Output parameterName) {
$.parameterName = parameterName;
return this;
}
/**
* @param parameterName The name of the common parameter. The name must be `2` to `180` characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start with `ALIYUN`, `ACS`, `ALIBABA`, `ALICLOUD`, or `OOS`.
*
* @return builder
*
*/
public Builder parameterName(String parameterName) {
return parameterName(Output.of(parameterName));
}
/**
* @param resourceGroupId The ID of the Resource Group.
*
* @return builder
*
*/
public Builder resourceGroupId(@Nullable Output resourceGroupId) {
$.resourceGroupId = resourceGroupId;
return this;
}
/**
* @param resourceGroupId The ID of the Resource Group.
*
* @return builder
*
*/
public Builder resourceGroupId(String resourceGroupId) {
return resourceGroupId(Output.of(resourceGroupId));
}
/**
* @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 type The data type of the common parameter. Valid values: `String` and `StringList`.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type The data type of the common parameter. Valid values: `String` and `StringList`.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param value The value of the common parameter. The value must be `1` to `4096` characters in length.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value The value of the common parameter. The value must be `1` to `4096` characters in length.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public ParameterArgs build() {
if ($.parameterName == null) {
throw new MissingRequiredPropertyException("ParameterArgs", "parameterName");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("ParameterArgs", "type");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("ParameterArgs", "value");
}
return $;
}
}
}