com.pulumi.googlenative.cloudbuild.v1.outputs.ArtifactObjectsResponse 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.cloudbuild.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.cloudbuild.v1.outputs.TimeSpanResponse;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ArtifactObjectsResponse {
/**
* @return Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
*
*/
private String location;
/**
* @return Path globs used to match files in the build's workspace.
*
*/
private List paths;
/**
* @return Stores timing information for pushing all artifact objects.
*
*/
private TimeSpanResponse timing;
private ArtifactObjectsResponse() {}
/**
* @return Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
*
*/
public String location() {
return this.location;
}
/**
* @return Path globs used to match files in the build's workspace.
*
*/
public List paths() {
return this.paths;
}
/**
* @return Stores timing information for pushing all artifact objects.
*
*/
public TimeSpanResponse timing() {
return this.timing;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ArtifactObjectsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String location;
private List paths;
private TimeSpanResponse timing;
public Builder() {}
public Builder(ArtifactObjectsResponse defaults) {
Objects.requireNonNull(defaults);
this.location = defaults.location;
this.paths = defaults.paths;
this.timing = defaults.timing;
}
@CustomType.Setter
public Builder location(String location) {
this.location = Objects.requireNonNull(location);
return this;
}
@CustomType.Setter
public Builder paths(List paths) {
this.paths = Objects.requireNonNull(paths);
return this;
}
public Builder paths(String... paths) {
return paths(List.of(paths));
}
@CustomType.Setter
public Builder timing(TimeSpanResponse timing) {
this.timing = Objects.requireNonNull(timing);
return this;
}
public ArtifactObjectsResponse build() {
final var o = new ArtifactObjectsResponse();
o.location = location;
o.paths = paths;
o.timing = timing;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy