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.googlenative.clouddeploy.v1.TargetArgs Maven / Gradle / Ivy
// *** 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.googlenative.clouddeploy.v1;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.clouddeploy.v1.inputs.AnthosClusterArgs;
import com.pulumi.googlenative.clouddeploy.v1.inputs.CloudRunLocationArgs;
import com.pulumi.googlenative.clouddeploy.v1.inputs.ExecutionConfigArgs;
import com.pulumi.googlenative.clouddeploy.v1.inputs.GkeClusterArgs;
import com.pulumi.googlenative.clouddeploy.v1.inputs.MultiTargetArgs;
import java.lang.Boolean;
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 TargetArgs extends com.pulumi.resources.ResourceArgs {
public static final TargetArgs Empty = new TargetArgs();
/**
* Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
*
*/
@Import(name="annotations")
private @Nullable Output> annotations;
/**
* @return Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
*
*/
public Optional>> annotations() {
return Optional.ofNullable(this.annotations);
}
/**
* Information specifying an Anthos Cluster.
*
*/
@Import(name="anthosCluster")
private @Nullable Output anthosCluster;
/**
* @return Information specifying an Anthos Cluster.
*
*/
public Optional> anthosCluster() {
return Optional.ofNullable(this.anthosCluster);
}
/**
* Optional. Description of the `Target`. Max length is 255 characters.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return Optional. Description of the `Target`. Max length is 255 characters.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
*
*/
@Import(name="etag")
private @Nullable Output etag;
/**
* @return Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
*
*/
public Optional> etag() {
return Optional.ofNullable(this.etag);
}
/**
* Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
*
*/
@Import(name="executionConfigs")
private @Nullable Output> executionConfigs;
/**
* @return Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
*
*/
public Optional>> executionConfigs() {
return Optional.ofNullable(this.executionConfigs);
}
/**
* Information specifying a GKE Cluster.
*
*/
@Import(name="gke")
private @Nullable Output gke;
/**
* @return Information specifying a GKE Cluster.
*
*/
public Optional> gke() {
return Optional.ofNullable(this.gke);
}
/**
* Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
*
*/
@Import(name="labels")
private @Nullable Output> labels;
/**
* @return Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
*
*/
public Optional>> labels() {
return Optional.ofNullable(this.labels);
}
@Import(name="location")
private @Nullable Output location;
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* Information specifying a multiTarget.
*
*/
@Import(name="multiTarget")
private @Nullable Output multiTarget;
/**
* @return Information specifying a multiTarget.
*
*/
public Optional> multiTarget() {
return Optional.ofNullable(this.multiTarget);
}
/**
* Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/targets/a-z{0,62}.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/targets/a-z{0,62}.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
@Import(name="project")
private @Nullable Output project;
public Optional> project() {
return Optional.ofNullable(this.project);
}
/**
* Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*
*/
@Import(name="requestId")
private @Nullable Output requestId;
/**
* @return Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*
*/
public Optional> requestId() {
return Optional.ofNullable(this.requestId);
}
/**
* Optional. Whether or not the `Target` requires approval.
*
*/
@Import(name="requireApproval")
private @Nullable Output requireApproval;
/**
* @return Optional. Whether or not the `Target` requires approval.
*
*/
public Optional> requireApproval() {
return Optional.ofNullable(this.requireApproval);
}
/**
* Information specifying a Cloud Run deployment target.
*
*/
@Import(name="run")
private @Nullable Output run;
/**
* @return Information specifying a Cloud Run deployment target.
*
*/
public Optional> run() {
return Optional.ofNullable(this.run);
}
/**
* Required. ID of the `Target`.
*
*/
@Import(name="targetId", required=true)
private Output targetId;
/**
* @return Required. ID of the `Target`.
*
*/
public Output targetId() {
return this.targetId;
}
private TargetArgs() {}
private TargetArgs(TargetArgs $) {
this.annotations = $.annotations;
this.anthosCluster = $.anthosCluster;
this.description = $.description;
this.etag = $.etag;
this.executionConfigs = $.executionConfigs;
this.gke = $.gke;
this.labels = $.labels;
this.location = $.location;
this.multiTarget = $.multiTarget;
this.name = $.name;
this.project = $.project;
this.requestId = $.requestId;
this.requireApproval = $.requireApproval;
this.run = $.run;
this.targetId = $.targetId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TargetArgs $;
public Builder() {
$ = new TargetArgs();
}
public Builder(TargetArgs defaults) {
$ = new TargetArgs(Objects.requireNonNull(defaults));
}
/**
* @param annotations Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
*
* @return builder
*
*/
public Builder annotations(@Nullable Output> annotations) {
$.annotations = annotations;
return this;
}
/**
* @param annotations Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
*
* @return builder
*
*/
public Builder annotations(Map annotations) {
return annotations(Output.of(annotations));
}
/**
* @param anthosCluster Information specifying an Anthos Cluster.
*
* @return builder
*
*/
public Builder anthosCluster(@Nullable Output anthosCluster) {
$.anthosCluster = anthosCluster;
return this;
}
/**
* @param anthosCluster Information specifying an Anthos Cluster.
*
* @return builder
*
*/
public Builder anthosCluster(AnthosClusterArgs anthosCluster) {
return anthosCluster(Output.of(anthosCluster));
}
/**
* @param description Optional. Description of the `Target`. Max length is 255 characters.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description Optional. Description of the `Target`. Max length is 255 characters.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param etag Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
*
* @return builder
*
*/
public Builder etag(@Nullable Output etag) {
$.etag = etag;
return this;
}
/**
* @param etag Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
*
* @return builder
*
*/
public Builder etag(String etag) {
return etag(Output.of(etag));
}
/**
* @param executionConfigs Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
*
* @return builder
*
*/
public Builder executionConfigs(@Nullable Output> executionConfigs) {
$.executionConfigs = executionConfigs;
return this;
}
/**
* @param executionConfigs Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
*
* @return builder
*
*/
public Builder executionConfigs(List executionConfigs) {
return executionConfigs(Output.of(executionConfigs));
}
/**
* @param executionConfigs Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
*
* @return builder
*
*/
public Builder executionConfigs(ExecutionConfigArgs... executionConfigs) {
return executionConfigs(List.of(executionConfigs));
}
/**
* @param gke Information specifying a GKE Cluster.
*
* @return builder
*
*/
public Builder gke(@Nullable Output gke) {
$.gke = gke;
return this;
}
/**
* @param gke Information specifying a GKE Cluster.
*
* @return builder
*
*/
public Builder gke(GkeClusterArgs gke) {
return gke(Output.of(gke));
}
/**
* @param labels Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
*
* @return builder
*
*/
public Builder labels(@Nullable Output> labels) {
$.labels = labels;
return this;
}
/**
* @param labels Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
*
* @return builder
*
*/
public Builder labels(Map labels) {
return labels(Output.of(labels));
}
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param multiTarget Information specifying a multiTarget.
*
* @return builder
*
*/
public Builder multiTarget(@Nullable Output multiTarget) {
$.multiTarget = multiTarget;
return this;
}
/**
* @param multiTarget Information specifying a multiTarget.
*
* @return builder
*
*/
public Builder multiTarget(MultiTargetArgs multiTarget) {
return multiTarget(Output.of(multiTarget));
}
/**
* @param name Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/targets/a-z{0,62}.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Optional. Name of the `Target`. Format is projects/{project}/locations/{location}/targets/a-z{0,62}.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public Builder project(@Nullable Output project) {
$.project = project;
return this;
}
public Builder project(String project) {
return project(Output.of(project));
}
/**
* @param requestId Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(@Nullable Output requestId) {
$.requestId = requestId;
return this;
}
/**
* @param requestId Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(String requestId) {
return requestId(Output.of(requestId));
}
/**
* @param requireApproval Optional. Whether or not the `Target` requires approval.
*
* @return builder
*
*/
public Builder requireApproval(@Nullable Output requireApproval) {
$.requireApproval = requireApproval;
return this;
}
/**
* @param requireApproval Optional. Whether or not the `Target` requires approval.
*
* @return builder
*
*/
public Builder requireApproval(Boolean requireApproval) {
return requireApproval(Output.of(requireApproval));
}
/**
* @param run Information specifying a Cloud Run deployment target.
*
* @return builder
*
*/
public Builder run(@Nullable Output run) {
$.run = run;
return this;
}
/**
* @param run Information specifying a Cloud Run deployment target.
*
* @return builder
*
*/
public Builder run(CloudRunLocationArgs run) {
return run(Output.of(run));
}
/**
* @param targetId Required. ID of the `Target`.
*
* @return builder
*
*/
public Builder targetId(Output targetId) {
$.targetId = targetId;
return this;
}
/**
* @param targetId Required. ID of the `Target`.
*
* @return builder
*
*/
public Builder targetId(String targetId) {
return targetId(Output.of(targetId));
}
public TargetArgs build() {
$.targetId = Objects.requireNonNull($.targetId, "expected parameter 'targetId' to be non-null");
return $;
}
}
}