Class LaunchTemplateCpuOptionsRequest

    • Method Detail

      • coreCount

        public final Integer coreCount()

        The number of CPU cores for the instance.

        Returns:
        The number of CPU cores for the instance.
      • threadsPerCore

        public final Integer threadsPerCore()

        The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1 . Otherwise, specify the default value of 2.

        Returns:
        The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.
      • nestedVirtualization

        public final NestedVirtualizationSpecification nestedVirtualization()

        Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.

        If the service returns an enum value that is not available in the current SDK version, nestedVirtualization will return NestedVirtualizationSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nestedVirtualizationAsString().

        Returns:
        Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.
        See Also:
        NestedVirtualizationSpecification
      • nestedVirtualizationAsString

        public final String nestedVirtualizationAsString()

        Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.

        If the service returns an enum value that is not available in the current SDK version, nestedVirtualization will return NestedVirtualizationSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from nestedVirtualizationAsString().

        Returns:
        Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.
        See Also:
        NestedVirtualizationSpecification
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)