com.pulumi.azurenative.cloudngfw.inputs.FrontendSettingArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.cloudngfw.inputs;
import com.pulumi.azurenative.cloudngfw.enums.ProtocolType;
import com.pulumi.azurenative.cloudngfw.inputs.EndpointConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Frontend setting for Firewall
*
*/
public final class FrontendSettingArgs extends com.pulumi.resources.ResourceArgs {
public static final FrontendSettingArgs Empty = new FrontendSettingArgs();
/**
* Backend configurations
*
*/
@Import(name="backendConfiguration", required=true)
private Output backendConfiguration;
/**
* @return Backend configurations
*
*/
public Output backendConfiguration() {
return this.backendConfiguration;
}
/**
* Frontend configurations
*
*/
@Import(name="frontendConfiguration", required=true)
private Output frontendConfiguration;
/**
* @return Frontend configurations
*
*/
public Output frontendConfiguration() {
return this.frontendConfiguration;
}
/**
* Settings name
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Settings name
*
*/
public Output name() {
return this.name;
}
/**
* Protocol Type
*
*/
@Import(name="protocol", required=true)
private Output> protocol;
/**
* @return Protocol Type
*
*/
public Output> protocol() {
return this.protocol;
}
private FrontendSettingArgs() {}
private FrontendSettingArgs(FrontendSettingArgs $) {
this.backendConfiguration = $.backendConfiguration;
this.frontendConfiguration = $.frontendConfiguration;
this.name = $.name;
this.protocol = $.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontendSettingArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FrontendSettingArgs $;
public Builder() {
$ = new FrontendSettingArgs();
}
public Builder(FrontendSettingArgs defaults) {
$ = new FrontendSettingArgs(Objects.requireNonNull(defaults));
}
/**
* @param backendConfiguration Backend configurations
*
* @return builder
*
*/
public Builder backendConfiguration(Output backendConfiguration) {
$.backendConfiguration = backendConfiguration;
return this;
}
/**
* @param backendConfiguration Backend configurations
*
* @return builder
*
*/
public Builder backendConfiguration(EndpointConfigurationArgs backendConfiguration) {
return backendConfiguration(Output.of(backendConfiguration));
}
/**
* @param frontendConfiguration Frontend configurations
*
* @return builder
*
*/
public Builder frontendConfiguration(Output frontendConfiguration) {
$.frontendConfiguration = frontendConfiguration;
return this;
}
/**
* @param frontendConfiguration Frontend configurations
*
* @return builder
*
*/
public Builder frontendConfiguration(EndpointConfigurationArgs frontendConfiguration) {
return frontendConfiguration(Output.of(frontendConfiguration));
}
/**
* @param name Settings name
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Settings name
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param protocol Protocol Type
*
* @return builder
*
*/
public Builder protocol(Output> protocol) {
$.protocol = protocol;
return this;
}
/**
* @param protocol Protocol Type
*
* @return builder
*
*/
public Builder protocol(Either protocol) {
return protocol(Output.of(protocol));
}
/**
* @param protocol Protocol Type
*
* @return builder
*
*/
public Builder protocol(String protocol) {
return protocol(Either.ofLeft(protocol));
}
/**
* @param protocol Protocol Type
*
* @return builder
*
*/
public Builder protocol(ProtocolType protocol) {
return protocol(Either.ofRight(protocol));
}
public FrontendSettingArgs build() {
if ($.backendConfiguration == null) {
throw new MissingRequiredPropertyException("FrontendSettingArgs", "backendConfiguration");
}
if ($.frontendConfiguration == null) {
throw new MissingRequiredPropertyException("FrontendSettingArgs", "frontendConfiguration");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("FrontendSettingArgs", "name");
}
if ($.protocol == null) {
throw new MissingRequiredPropertyException("FrontendSettingArgs", "protocol");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy