Class PolicyArgs.Builder

  • Enclosing class:
    PolicyArgs

    public static final class PolicyArgs.Builder
    extends java.lang.Object
    • 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