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

com.pulumi.azurenative.cdn.outputs.RouteConfigurationOverrideActionParametersResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.cdn.outputs.CacheConfigurationResponse;
import com.pulumi.azurenative.cdn.outputs.OriginGroupOverrideResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RouteConfigurationOverrideActionParametersResponse {
    /**
     * @return The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.
     * 
     */
    private @Nullable CacheConfigurationResponse cacheConfiguration;
    /**
     * @return A reference to the origin group override configuration. Leave empty to use the default origin group on route.
     * 
     */
    private @Nullable OriginGroupOverrideResponse originGroupOverride;
    private String typeName;

    private RouteConfigurationOverrideActionParametersResponse() {}
    /**
     * @return The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.
     * 
     */
    public Optional cacheConfiguration() {
        return Optional.ofNullable(this.cacheConfiguration);
    }
    /**
     * @return A reference to the origin group override configuration. Leave empty to use the default origin group on route.
     * 
     */
    public Optional originGroupOverride() {
        return Optional.ofNullable(this.originGroupOverride);
    }
    public String typeName() {
        return this.typeName;
    }

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

    public static Builder builder(RouteConfigurationOverrideActionParametersResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CacheConfigurationResponse cacheConfiguration;
        private @Nullable OriginGroupOverrideResponse originGroupOverride;
        private String typeName;
        public Builder() {}
        public Builder(RouteConfigurationOverrideActionParametersResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cacheConfiguration = defaults.cacheConfiguration;
    	      this.originGroupOverride = defaults.originGroupOverride;
    	      this.typeName = defaults.typeName;
        }

        @CustomType.Setter
        public Builder cacheConfiguration(@Nullable CacheConfigurationResponse cacheConfiguration) {

            this.cacheConfiguration = cacheConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder originGroupOverride(@Nullable OriginGroupOverrideResponse originGroupOverride) {

            this.originGroupOverride = originGroupOverride;
            return this;
        }
        @CustomType.Setter
        public Builder typeName(String typeName) {
            if (typeName == null) {
              throw new MissingRequiredPropertyException("RouteConfigurationOverrideActionParametersResponse", "typeName");
            }
            this.typeName = typeName;
            return this;
        }
        public RouteConfigurationOverrideActionParametersResponse build() {
            final var _resultValue = new RouteConfigurationOverrideActionParametersResponse();
            _resultValue.cacheConfiguration = cacheConfiguration;
            _resultValue.originGroupOverride = originGroupOverride;
            _resultValue.typeName = typeName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy