com.pulumi.azure.network.inputs.NetworkManagerAdminRuleSourceArgs 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.String;
import java.util.Objects;
public final class NetworkManagerAdminRuleSourceArgs extends com.pulumi.resources.ResourceArgs {
public static final NetworkManagerAdminRuleSourceArgs Empty = new NetworkManagerAdminRuleSourceArgs();
/**
* Specifies the address prefix.
*
*/
@Import(name="addressPrefix", required=true)
private Output addressPrefix;
/**
* @return Specifies the address prefix.
*
*/
public Output addressPrefix() {
return this.addressPrefix;
}
/**
* Specifies the address prefix type. Possible values are `IPPrefix` and `ServiceTag`. For more information, please see [this document](https://learn.microsoft.com/en-us/azure/virtual-network-manager/concept-security-admins#source-and-destination-types).
*
*/
@Import(name="addressPrefixType", required=true)
private Output addressPrefixType;
/**
* @return Specifies the address prefix type. Possible values are `IPPrefix` and `ServiceTag`. For more information, please see [this document](https://learn.microsoft.com/en-us/azure/virtual-network-manager/concept-security-admins#source-and-destination-types).
*
*/
public Output addressPrefixType() {
return this.addressPrefixType;
}
private NetworkManagerAdminRuleSourceArgs() {}
private NetworkManagerAdminRuleSourceArgs(NetworkManagerAdminRuleSourceArgs $) {
this.addressPrefix = $.addressPrefix;
this.addressPrefixType = $.addressPrefixType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkManagerAdminRuleSourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NetworkManagerAdminRuleSourceArgs $;
public Builder() {
$ = new NetworkManagerAdminRuleSourceArgs();
}
public Builder(NetworkManagerAdminRuleSourceArgs defaults) {
$ = new NetworkManagerAdminRuleSourceArgs(Objects.requireNonNull(defaults));
}
/**
* @param addressPrefix Specifies the address prefix.
*
* @return builder
*
*/
public Builder addressPrefix(Output addressPrefix) {
$.addressPrefix = addressPrefix;
return this;
}
/**
* @param addressPrefix Specifies the address prefix.
*
* @return builder
*
*/
public Builder addressPrefix(String addressPrefix) {
return addressPrefix(Output.of(addressPrefix));
}
/**
* @param addressPrefixType Specifies the address prefix type. Possible values are `IPPrefix` and `ServiceTag`. For more information, please see [this document](https://learn.microsoft.com/en-us/azure/virtual-network-manager/concept-security-admins#source-and-destination-types).
*
* @return builder
*
*/
public Builder addressPrefixType(Output addressPrefixType) {
$.addressPrefixType = addressPrefixType;
return this;
}
/**
* @param addressPrefixType Specifies the address prefix type. Possible values are `IPPrefix` and `ServiceTag`. For more information, please see [this document](https://learn.microsoft.com/en-us/azure/virtual-network-manager/concept-security-admins#source-and-destination-types).
*
* @return builder
*
*/
public Builder addressPrefixType(String addressPrefixType) {
return addressPrefixType(Output.of(addressPrefixType));
}
public NetworkManagerAdminRuleSourceArgs build() {
if ($.addressPrefix == null) {
throw new MissingRequiredPropertyException("NetworkManagerAdminRuleSourceArgs", "addressPrefix");
}
if ($.addressPrefixType == null) {
throw new MissingRequiredPropertyException("NetworkManagerAdminRuleSourceArgs", "addressPrefixType");
}
return $;
}
}
}