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

com.pulumi.azurenative.network.outputs.DdosSettingsResponse 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.network.outputs;

import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DdosSettingsResponse {
    /**
     * @return The DDoS custom policy associated with the public IP.
     * 
     */
    private @Nullable SubResourceResponse ddosCustomPolicy;
    /**
     * @return The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled
     * 
     */
    private @Nullable SubResourceResponse ddosProtectionPlan;
    /**
     * @return The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized.
     * 
     */
    private @Nullable String protectionCoverage;
    /**
     * @return The DDoS protection mode of the public IP
     * 
     */
    private @Nullable String protectionMode;

    private DdosSettingsResponse() {}
    /**
     * @return The DDoS custom policy associated with the public IP.
     * 
     */
    public Optional ddosCustomPolicy() {
        return Optional.ofNullable(this.ddosCustomPolicy);
    }
    /**
     * @return The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled
     * 
     */
    public Optional ddosProtectionPlan() {
        return Optional.ofNullable(this.ddosProtectionPlan);
    }
    /**
     * @return The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized.
     * 
     */
    public Optional protectionCoverage() {
        return Optional.ofNullable(this.protectionCoverage);
    }
    /**
     * @return The DDoS protection mode of the public IP
     * 
     */
    public Optional protectionMode() {
        return Optional.ofNullable(this.protectionMode);
    }

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

    public static Builder builder(DdosSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable SubResourceResponse ddosCustomPolicy;
        private @Nullable SubResourceResponse ddosProtectionPlan;
        private @Nullable String protectionCoverage;
        private @Nullable String protectionMode;
        public Builder() {}
        public Builder(DdosSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ddosCustomPolicy = defaults.ddosCustomPolicy;
    	      this.ddosProtectionPlan = defaults.ddosProtectionPlan;
    	      this.protectionCoverage = defaults.protectionCoverage;
    	      this.protectionMode = defaults.protectionMode;
        }

        @CustomType.Setter
        public Builder ddosCustomPolicy(@Nullable SubResourceResponse ddosCustomPolicy) {

            this.ddosCustomPolicy = ddosCustomPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder ddosProtectionPlan(@Nullable SubResourceResponse ddosProtectionPlan) {

            this.ddosProtectionPlan = ddosProtectionPlan;
            return this;
        }
        @CustomType.Setter
        public Builder protectionCoverage(@Nullable String protectionCoverage) {

            this.protectionCoverage = protectionCoverage;
            return this;
        }
        @CustomType.Setter
        public Builder protectionMode(@Nullable String protectionMode) {

            this.protectionMode = protectionMode;
            return this;
        }
        public DdosSettingsResponse build() {
            final var _resultValue = new DdosSettingsResponse();
            _resultValue.ddosCustomPolicy = ddosCustomPolicy;
            _resultValue.ddosProtectionPlan = ddosProtectionPlan;
            _resultValue.protectionCoverage = protectionCoverage;
            _resultValue.protectionMode = protectionMode;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy