Package com.pulumi.gcp.dns
Class PolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.dns.PolicyArgs.Builder
-
- Enclosing class:
- PolicyArgs
public static final class PolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(PolicyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyArgs.Builder
alternativeNameServerConfig(com.pulumi.core.Output<PolicyAlternativeNameServerConfigArgs> alternativeNameServerConfig)
PolicyArgs.Builder
alternativeNameServerConfig(PolicyAlternativeNameServerConfigArgs alternativeNameServerConfig)
PolicyArgs
build()
PolicyArgs.Builder
description(com.pulumi.core.Output<java.lang.String> description)
PolicyArgs.Builder
description(java.lang.String description)
PolicyArgs.Builder
enableInboundForwarding(com.pulumi.core.Output<java.lang.Boolean> enableInboundForwarding)
PolicyArgs.Builder
enableInboundForwarding(java.lang.Boolean enableInboundForwarding)
PolicyArgs.Builder
enableLogging(com.pulumi.core.Output<java.lang.Boolean> enableLogging)
PolicyArgs.Builder
enableLogging(java.lang.Boolean enableLogging)
PolicyArgs.Builder
name(com.pulumi.core.Output<java.lang.String> name)
PolicyArgs.Builder
name(java.lang.String name)
PolicyArgs.Builder
networks(com.pulumi.core.Output<java.util.List<PolicyNetworkArgs>> networks)
PolicyArgs.Builder
networks(PolicyNetworkArgs... networks)
PolicyArgs.Builder
networks(java.util.List<PolicyNetworkArgs> networks)
PolicyArgs.Builder
project(com.pulumi.core.Output<java.lang.String> project)
PolicyArgs.Builder
project(java.lang.String project)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicyArgs defaults)
-
-
Method Detail
-
alternativeNameServerConfig
public PolicyArgs.Builder alternativeNameServerConfig(@Nullable com.pulumi.core.Output<PolicyAlternativeNameServerConfigArgs> alternativeNameServerConfig)
- Parameters:
alternativeNameServerConfig
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified. Structure is documented below.- Returns:
- builder
-
alternativeNameServerConfig
public PolicyArgs.Builder alternativeNameServerConfig(PolicyAlternativeNameServerConfigArgs alternativeNameServerConfig)
- Parameters:
alternativeNameServerConfig
- Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified. Structure is documented below.- Returns:
- builder
-
description
public PolicyArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- A textual description field. Defaults to 'Managed by Pulumi'.- Returns:
- builder
-
description
public PolicyArgs.Builder description(java.lang.String description)
- Parameters:
description
- A textual description field. Defaults to 'Managed by Pulumi'.- Returns:
- builder
-
enableInboundForwarding
public PolicyArgs.Builder enableInboundForwarding(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableInboundForwarding)
- Parameters:
enableInboundForwarding
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy.- Returns:
- builder
-
enableInboundForwarding
public PolicyArgs.Builder enableInboundForwarding(java.lang.Boolean enableInboundForwarding)
- Parameters:
enableInboundForwarding
- Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address will be allocated from each of the sub-networks that are bound to this policy.- Returns:
- builder
-
enableLogging
public PolicyArgs.Builder enableLogging(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableLogging)
- Parameters:
enableLogging
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.- Returns:
- builder
-
enableLogging
public PolicyArgs.Builder enableLogging(java.lang.Boolean enableLogging)
- Parameters:
enableLogging
- Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.- Returns:
- builder
-
name
public PolicyArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- User assigned name for this policy.- Returns:
- builder
-
name
public PolicyArgs.Builder name(java.lang.String name)
- Parameters:
name
- User assigned name for this policy.- Returns:
- builder
-
networks
public PolicyArgs.Builder networks(@Nullable com.pulumi.core.Output<java.util.List<PolicyNetworkArgs>> networks)
- Parameters:
networks
- List of network names specifying networks to which this policy is applied. Structure is documented below.- Returns:
- builder
-
networks
public PolicyArgs.Builder networks(java.util.List<PolicyNetworkArgs> networks)
- Parameters:
networks
- List of network names specifying networks to which this policy is applied. Structure is documented below.- Returns:
- builder
-
networks
public PolicyArgs.Builder networks(PolicyNetworkArgs... networks)
- Parameters:
networks
- List of network names specifying networks to which this policy is applied. Structure is documented below.- Returns:
- builder
-
project
public PolicyArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public PolicyArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
build
public PolicyArgs build()
-
-