Class CreateVnicDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public CreateVnicDetails.Builder displayName​(String displayName)
        Display name for secondary vnic
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • assignIpv6Ip

        public CreateVnicDetails.Builder assignIpv6Ip​(Boolean assignIpv6Ip)
        Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet
        Parameters:
        assignIpv6Ip - the value to set
        Returns:
        this builder
      • assignPublicIp

        public CreateVnicDetails.Builder assignPublicIp​(Boolean assignPublicIp)
        Whether the VNIC should be assigned a public IP address
        Parameters:
        assignPublicIp - the value to set
        Returns:
        this builder
      • definedTags

        public CreateVnicDetails.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • freeformTags

        public CreateVnicDetails.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • ipCount

        public CreateVnicDetails.Builder ipCount​(Integer ipCount)
        The number of ip addresses to attach to secondary vnic
        Parameters:
        ipCount - the value to set
        Returns:
        this builder
      • applicationResources

        public CreateVnicDetails.Builder applicationResources​(List<String> applicationResources)
        The application resource that corresponds to this secondary vnic.

        Used to map pods to this specific vnic for scheduling

        Parameters:
        applicationResources - the value to set
        Returns:
        this builder
      • ipv6AddressIpv6SubnetCidrPairDetails

        public CreateVnicDetails.Builder ipv6AddressIpv6SubnetCidrPairDetails​(List<Ipv6AddressIpv6SubnetCidrPairDetails> ipv6AddressIpv6SubnetCidrPairDetails)
        A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address.

        You can provide only the prefix and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.

        Parameters:
        ipv6AddressIpv6SubnetCidrPairDetails - the value to set
        Returns:
        this builder
      • nsgIds

        public CreateVnicDetails.Builder nsgIds​(List<String> nsgIds)
        A list of the OCIDs of the network security groups (NSGs) to add the VNIC to
        Parameters:
        nsgIds - the value to set
        Returns:
        this builder
      • skipSourceDestCheck

        public CreateVnicDetails.Builder skipSourceDestCheck​(Boolean skipSourceDestCheck)
        Whether the source/destination check is disabled on the VNIC
        Parameters:
        skipSourceDestCheck - the value to set
        Returns:
        this builder
      • subnetId

        public CreateVnicDetails.Builder subnetId​(String subnetId)
        the ocid of the subnet to create the vnic in
        Parameters:
        subnetId - the value to set
        Returns:
        this builder