Class DnsPolicyConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public DnsPolicyConfig.Builder name​(String name)
        Sets the value of DnsPolicyConfig.getName()
        Parameters:
        name - User assigned name for this policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#name DnsPolicy#name}
        Returns:
        this
      • alternativeNameServerConfig

        @Stability(Stable)
        public DnsPolicyConfig.Builder alternativeNameServerConfig​(DnsPolicyAlternativeNameServerConfig alternativeNameServerConfig)
        Parameters:
        alternativeNameServerConfig - alternative_name_server_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#alternative_name_server_config DnsPolicy#alternative_name_server_config}
        Returns:
        this
      • description

        @Stability(Stable)
        public DnsPolicyConfig.Builder description​(String description)
        Parameters:
        description - A textual description field. Defaults to 'Managed by Terraform'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#description DnsPolicy#description}
        Returns:
        this
      • enableInboundForwarding

        @Stability(Stable)
        public DnsPolicyConfig.Builder enableInboundForwarding​(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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_inbound_forwarding DnsPolicy#enable_inbound_forwarding}
        Returns:
        this
      • enableInboundForwarding

        @Stability(Stable)
        public DnsPolicyConfig.Builder enableInboundForwarding​(com.hashicorp.cdktf.IResolvable 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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_inbound_forwarding DnsPolicy#enable_inbound_forwarding}
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public DnsPolicyConfig.Builder enableLogging​(Boolean enableLogging)
        Parameters:
        enableLogging - Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_logging DnsPolicy#enable_logging}
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public DnsPolicyConfig.Builder enableLogging​(com.hashicorp.cdktf.IResolvable enableLogging)
        Parameters:
        enableLogging - Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#enable_logging DnsPolicy#enable_logging}
        Returns:
        this
      • id

        @Stability(Stable)
        public DnsPolicyConfig.Builder id​(String id)
        Sets the value of DnsPolicyConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#id DnsPolicy#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • networks

        @Stability(Stable)
        public DnsPolicyConfig.Builder networks​(com.hashicorp.cdktf.IResolvable networks)
        Parameters:
        networks - networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#networks DnsPolicy#networks}
        Returns:
        this
      • networks

        @Stability(Stable)
        public DnsPolicyConfig.Builder networks​(List<? extends DnsPolicyNetworks> networks)
        Parameters:
        networks - networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#networks DnsPolicy#networks}
        Returns:
        this
      • project

        @Stability(Stable)
        public DnsPolicyConfig.Builder project​(String project)
        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#project DnsPolicy#project}.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public DnsPolicyConfig.Builder timeouts​(DnsPolicyTimeouts timeouts)
        Parameters:
        timeouts - timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dns_policy#timeouts DnsPolicy#timeouts}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DnsPolicyConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DnsPolicyConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DnsPolicyConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DnsPolicyConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public DnsPolicyConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public DnsPolicyConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public DnsPolicyConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public DnsPolicyConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public DnsPolicyConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this