Class InstancePoolPlacementPrimarySubnet


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20160918")
    public final class InstancePoolPlacementPrimarySubnet
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Details about the IPv6 primary subnet.
    Note: Objects should always be created or deserialized using the InstancePoolPlacementPrimarySubnet.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the InstancePoolPlacementPrimarySubnet.Builder, which maintain a set of all explicitly set fields called InstancePoolPlacementPrimarySubnet.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getIsAssignIpv6Ip

        public Boolean getIsAssignIpv6Ip()
        Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet.

        Default: False. When provided you may optionally provide an IPv6 prefix ( ipv6SubnetCidr) of your choice to assign the IPv6 address from. If ipv6SubnetCidr is not provided then an IPv6 prefix is chosen for you.

        Returns:
        the value
      • getIpv6AddressIpv6SubnetCidrPairDetails

        public List<InstancePoolPlacementIpv6AddressIpv6SubnetCidrDetails> getIpv6AddressIpv6SubnetCidrPairDetails()
        A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address.

        You can provide only the prefix ranges and OCI will select 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.

        Returns:
        the value
      • getSubnetId

        public String getSubnetId()
        The subnet OCID for the secondary VNIC.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel