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

com.pulumi.azurenative.devopsinfrastructure.outputs.PoolImageResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show 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.azurenative.devopsinfrastructure.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PoolImageResponse {
    /**
     * @return List of aliases to reference the image by.
     * 
     */
    private @Nullable List aliases;
    /**
     * @return The percentage of the buffer to be allocated to this image.
     * 
     */
    private @Nullable String buffer;
    /**
     * @return The resource id of the image.
     * 
     */
    private String resourceId;

    private PoolImageResponse() {}
    /**
     * @return List of aliases to reference the image by.
     * 
     */
    public List aliases() {
        return this.aliases == null ? List.of() : this.aliases;
    }
    /**
     * @return The percentage of the buffer to be allocated to this image.
     * 
     */
    public Optional buffer() {
        return Optional.ofNullable(this.buffer);
    }
    /**
     * @return The resource id of the image.
     * 
     */
    public String resourceId() {
        return this.resourceId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PoolImageResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List aliases;
        private @Nullable String buffer;
        private String resourceId;
        public Builder() {}
        public Builder(PoolImageResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.aliases = defaults.aliases;
    	      this.buffer = defaults.buffer;
    	      this.resourceId = defaults.resourceId;
        }

        @CustomType.Setter
        public Builder aliases(@Nullable List aliases) {

            this.aliases = aliases;
            return this;
        }
        public Builder aliases(String... aliases) {
            return aliases(List.of(aliases));
        }
        @CustomType.Setter
        public Builder buffer(@Nullable String buffer) {

            this.buffer = buffer;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(String resourceId) {
            if (resourceId == null) {
              throw new MissingRequiredPropertyException("PoolImageResponse", "resourceId");
            }
            this.resourceId = resourceId;
            return this;
        }
        public PoolImageResponse build() {
            final var _resultValue = new PoolImageResponse();
            _resultValue.aliases = aliases;
            _resultValue.buffer = buffer;
            _resultValue.resourceId = resourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy