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

com.pulumi.azurenative.cache.outputs.SkuResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.cache.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class SkuResponse {
    /**
     * @return The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4).
     * 
     */
    private Integer capacity;
    /**
     * @return The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium).
     * 
     */
    private String family;
    /**
     * @return The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium)
     * 
     */
    private String name;

    private SkuResponse() {}
    /**
     * @return The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4).
     * 
     */
    public Integer capacity() {
        return this.capacity;
    }
    /**
     * @return The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium).
     * 
     */
    public String family() {
        return this.family;
    }
    /**
     * @return The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium)
     * 
     */
    public String name() {
        return this.name;
    }

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

    public static Builder builder(SkuResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer capacity;
        private String family;
        private String name;
        public Builder() {}
        public Builder(SkuResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.capacity = defaults.capacity;
    	      this.family = defaults.family;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder capacity(Integer capacity) {
            if (capacity == null) {
              throw new MissingRequiredPropertyException("SkuResponse", "capacity");
            }
            this.capacity = capacity;
            return this;
        }
        @CustomType.Setter
        public Builder family(String family) {
            if (family == null) {
              throw new MissingRequiredPropertyException("SkuResponse", "family");
            }
            this.family = family;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("SkuResponse", "name");
            }
            this.name = name;
            return this;
        }
        public SkuResponse build() {
            final var _resultValue = new SkuResponse();
            _resultValue.capacity = capacity;
            _resultValue.family = family;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy