Class CpuOptionsRequest

    • 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.
      • amdSevSnpAsString

        public final String amdSevSnpAsString()

        Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.

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

        Returns:
        Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
        See Also:
        AmdSevSnpSpecification
      • 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)