All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingCacheProps Maven / Gradle / Ivy

There is a newer version: 0.2.627
Show newest version
package com.pepperize.cdk.autoscaling_gitlab_runner;

/**
 * The distributed GitLab runner S3 cache.
 * 

* Either pass an existing bucket or override default options. *

* @see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerscaches3-section */ @javax.annotation.Generated(value = "jsii-pacmak/1.98.0 (build 00b106d)", date = "2024-05-01T02:44:42.314Z") @software.amazon.jsii.Jsii(module = com.pepperize.cdk.autoscaling_gitlab_runner.$Module.class, fqn = "@pepperize/cdk-autoscaling-gitlab-runner.GitlabRunnerAutoscalingCacheProps") @software.amazon.jsii.Jsii.Proxy(GitlabRunnerAutoscalingCacheProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface GitlabRunnerAutoscalingCacheProps extends software.amazon.jsii.JsiiSerializable { /** * An existing S3 bucket used as runner's cache. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.IBucket getBucket() { return null; } /** * If no existing S3 bucket is provided, a S3 bucket will be created. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps getOptions() { return null; } /** * @return a {@link Builder} of {@link GitlabRunnerAutoscalingCacheProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link GitlabRunnerAutoscalingCacheProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { software.amazon.awscdk.services.s3.IBucket bucket; com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps options; /** * Sets the value of {@link GitlabRunnerAutoscalingCacheProps#getBucket} * @param bucket An existing S3 bucket used as runner's cache. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder bucket(software.amazon.awscdk.services.s3.IBucket bucket) { this.bucket = bucket; return this; } /** * Sets the value of {@link GitlabRunnerAutoscalingCacheProps#getOptions} * @param options If no existing S3 bucket is provided, a S3 bucket will be created. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder options(com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps options) { this.options = options; return this; } /** * Builds the configured instance. * @return a new instance of {@link GitlabRunnerAutoscalingCacheProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public GitlabRunnerAutoscalingCacheProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link GitlabRunnerAutoscalingCacheProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GitlabRunnerAutoscalingCacheProps { private final software.amazon.awscdk.services.s3.IBucket bucket; private final com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps options; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.bucket = software.amazon.jsii.Kernel.get(this, "bucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class)); this.options = software.amazon.jsii.Kernel.get(this, "options", software.amazon.jsii.NativeType.forClass(com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.bucket = builder.bucket; this.options = builder.options; } @Override public final software.amazon.awscdk.services.s3.IBucket getBucket() { return this.bucket; } @Override public final com.pepperize.cdk.autoscaling_gitlab_runner.CacheProps getOptions() { return this.options; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getBucket() != null) { data.set("bucket", om.valueToTree(this.getBucket())); } if (this.getOptions() != null) { data.set("options", om.valueToTree(this.getOptions())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@pepperize/cdk-autoscaling-gitlab-runner.GitlabRunnerAutoscalingCacheProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitlabRunnerAutoscalingCacheProps.Jsii$Proxy that = (GitlabRunnerAutoscalingCacheProps.Jsii$Proxy) o; if (this.bucket != null ? !this.bucket.equals(that.bucket) : that.bucket != null) return false; return this.options != null ? this.options.equals(that.options) : that.options == null; } @Override public final int hashCode() { int result = this.bucket != null ? this.bucket.hashCode() : 0; result = 31 * result + (this.options != null ? this.options.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy