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

com.pulumi.alicloud.alb.outputs.GetRulesRuleRuleActionFixedResponseConfig Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.alb.outputs;

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

@CustomType
public final class GetRulesRuleRuleActionFixedResponseConfig {
    /**
     * @return The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
     * 
     */
    private String content;
    /**
     * @return The format of the fixed response.
     * 
     */
    private String contentType;
    /**
     * @return The redirect method.
     * 
     */
    private String httpCode;

    private GetRulesRuleRuleActionFixedResponseConfig() {}
    /**
     * @return The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return The format of the fixed response.
     * 
     */
    public String contentType() {
        return this.contentType;
    }
    /**
     * @return The redirect method.
     * 
     */
    public String httpCode() {
        return this.httpCode;
    }

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

    public static Builder builder(GetRulesRuleRuleActionFixedResponseConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String content;
        private String contentType;
        private String httpCode;
        public Builder() {}
        public Builder(GetRulesRuleRuleActionFixedResponseConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.content = defaults.content;
    	      this.contentType = defaults.contentType;
    	      this.httpCode = defaults.httpCode;
        }

        @CustomType.Setter
        public Builder content(String content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("GetRulesRuleRuleActionFixedResponseConfig", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder contentType(String contentType) {
            if (contentType == null) {
              throw new MissingRequiredPropertyException("GetRulesRuleRuleActionFixedResponseConfig", "contentType");
            }
            this.contentType = contentType;
            return this;
        }
        @CustomType.Setter
        public Builder httpCode(String httpCode) {
            if (httpCode == null) {
              throw new MissingRequiredPropertyException("GetRulesRuleRuleActionFixedResponseConfig", "httpCode");
            }
            this.httpCode = httpCode;
            return this;
        }
        public GetRulesRuleRuleActionFixedResponseConfig build() {
            final var _resultValue = new GetRulesRuleRuleActionFixedResponseConfig();
            _resultValue.content = content;
            _resultValue.contentType = contentType;
            _resultValue.httpCode = httpCode;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy