com.pulumi.azure.network.inputs.VirtualNetworkDdosProtectionPlanArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.network.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
public final class VirtualNetworkDdosProtectionPlanArgs extends com.pulumi.resources.ResourceArgs {
public static final VirtualNetworkDdosProtectionPlanArgs Empty = new VirtualNetworkDdosProtectionPlanArgs();
/**
* Enable/disable DDoS Protection Plan on Virtual Network.
*
*/
@Import(name="enable", required=true)
private Output enable;
/**
* @return Enable/disable DDoS Protection Plan on Virtual Network.
*
*/
public Output enable() {
return this.enable;
}
/**
* The ID of DDoS Protection Plan.
*
*/
@Import(name="id", required=true)
private Output id;
/**
* @return The ID of DDoS Protection Plan.
*
*/
public Output id() {
return this.id;
}
private VirtualNetworkDdosProtectionPlanArgs() {}
private VirtualNetworkDdosProtectionPlanArgs(VirtualNetworkDdosProtectionPlanArgs $) {
this.enable = $.enable;
this.id = $.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkDdosProtectionPlanArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VirtualNetworkDdosProtectionPlanArgs $;
public Builder() {
$ = new VirtualNetworkDdosProtectionPlanArgs();
}
public Builder(VirtualNetworkDdosProtectionPlanArgs defaults) {
$ = new VirtualNetworkDdosProtectionPlanArgs(Objects.requireNonNull(defaults));
}
/**
* @param enable Enable/disable DDoS Protection Plan on Virtual Network.
*
* @return builder
*
*/
public Builder enable(Output enable) {
$.enable = enable;
return this;
}
/**
* @param enable Enable/disable DDoS Protection Plan on Virtual Network.
*
* @return builder
*
*/
public Builder enable(Boolean enable) {
return enable(Output.of(enable));
}
/**
* @param id The ID of DDoS Protection Plan.
*
* @return builder
*
*/
public Builder id(Output id) {
$.id = id;
return this;
}
/**
* @param id The ID of DDoS Protection Plan.
*
* @return builder
*
*/
public Builder id(String id) {
return id(Output.of(id));
}
public VirtualNetworkDdosProtectionPlanArgs build() {
if ($.enable == null) {
throw new MissingRequiredPropertyException("VirtualNetworkDdosProtectionPlanArgs", "enable");
}
if ($.id == null) {
throw new MissingRequiredPropertyException("VirtualNetworkDdosProtectionPlanArgs", "id");
}
return $;
}
}
}