com.pulumi.aws.codebuild.outputs.ProjectCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** 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.aws.codebuild.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ProjectCache {
/**
* @return Location where the AWS CodeBuild project stores cached resources. For type `S3`, the value must be a valid S3 bucket name/prefix.
*
*/
private @Nullable String location;
/**
* @return Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: `LOCAL_SOURCE_CACHE`, `LOCAL_DOCKER_LAYER_CACHE`, `LOCAL_CUSTOM_CACHE`.
*
*/
private @Nullable List modes;
/**
* @return Type of storage that will be used for the AWS CodeBuild project cache. Valid values: `NO_CACHE`, `LOCAL`, `S3`. Defaults to `NO_CACHE`.
*
*/
private @Nullable String type;
private ProjectCache() {}
/**
* @return Location where the AWS CodeBuild project stores cached resources. For type `S3`, the value must be a valid S3 bucket name/prefix.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: `LOCAL_SOURCE_CACHE`, `LOCAL_DOCKER_LAYER_CACHE`, `LOCAL_CUSTOM_CACHE`.
*
*/
public List modes() {
return this.modes == null ? List.of() : this.modes;
}
/**
* @return Type of storage that will be used for the AWS CodeBuild project cache. Valid values: `NO_CACHE`, `LOCAL`, `S3`. Defaults to `NO_CACHE`.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProjectCache defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String location;
private @Nullable List modes;
private @Nullable String type;
public Builder() {}
public Builder(ProjectCache defaults) {
Objects.requireNonNull(defaults);
this.location = defaults.location;
this.modes = defaults.modes;
this.type = defaults.type;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder modes(@Nullable List modes) {
this.modes = modes;
return this;
}
public Builder modes(String... modes) {
return modes(List.of(modes));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public ProjectCache build() {
final var _resultValue = new ProjectCache();
_resultValue.location = location;
_resultValue.modes = modes;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy