Class VPCDNSResolverPatch

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.VPCDNSResolverPatch
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class VPCDNSResolverPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPCDNSResolverPatch.
  • Method Details

    • newBuilder

      public VPCDNSResolverPatch.Builder newBuilder()
      New builder.
      Returns:
      a VPCDNSResolverPatch builder
    • manualServers

      public List<DNSServerPrototype> manualServers()
      Gets the manualServers. The DNS servers to use for this VPC, replacing any existing servers. All the DNS servers must either: - have a unique `zone_affinity`, or - not have a `zone_affinity`. If `zone_affinity` is specified, exactly one DNS server must be specified for each zone in the region. The DHCP [Domain Name Server Option](https://datatracker.ietf.org/doc/html/rfc2132#section-3.8) for a zone will list this DNS server first, followed by unique DNS servers from other zones if available. If `zone_affinity` is not specified, the DHCP [Domain Name Server Option](https://datatracker.ietf.org/doc/html/rfc2132#section-3.8) for each zone will list all the manual DNS servers in the order specified. `dns.resolver.manual_servers` must be set if and only if `dns.resolver.type` is `manual`.
      Returns:
      the manualServers
    • type

      public String type()
      Gets the type. The type of the DNS resolver to use. - `delegated`: DNS server addresses will be provided by the resolver for the VPC specified in `dns.resolver.vpc`. Requires `dns.enable_hub` to be `false`. - `manual`: DNS server addresses are specified in `dns.resolver.manual_servers`. - `system`: DNS server addresses will be provided by the system and depend on the configuration. Updating from `manual` requires `dns.resolver.manual_servers` to be specified as `null`. Updating to `manual` requires `dns.resolver.manual_servers` to be specified and not empty. Updating from `delegated` requires `dns.resolver.vpc` to be specified as `null`.
      Returns:
      the type
    • vpc

      public VPCDNSResolverVPCPatch vpc()
      Gets the vpc. The VPC to provide DNS server addresses for this VPC. The specified VPC must be configured with a [DNS Services](https://cloud.ibm.com/docs/dns-svcs) custom resolver and must be in one of this VPC's DNS resolution bindings. Specify `null` to remove an existing VPC. This property must be set if and only if `dns.resolver.type` is `delegated`.
      Returns:
      the vpc