Class ModifyInstanceCpuOptionsRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<ModifyInstanceCpuOptionsRequest.Builder,ModifyInstanceCpuOptionsRequest>

@Generated("software.amazon.awssdk:codegen") public final class ModifyInstanceCpuOptionsRequest extends Ec2Request implements ToCopyableBuilder<ModifyInstanceCpuOptionsRequest.Builder,ModifyInstanceCpuOptionsRequest>
  • Method Details

    • instanceId

      public final String instanceId()

      The ID of the instance to update.

      Returns:
      The ID of the instance to update.
    • coreCount

      public final Integer coreCount()

      The number of CPU cores to activate for the specified instance.

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

      public final Integer threadsPerCore()

      The number of threads to run for each CPU core.

      Returns:
      The number of threads to run for each CPU core.
    • nestedVirtualization

      public final NestedVirtualizationSpecification nestedVirtualization()

      Indicates whether to enable or disable nested virtualization for the instance. 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 or disable nested virtualization for the instance. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.
      See Also:
    • nestedVirtualizationAsString

      public final String nestedVirtualizationAsString()

      Indicates whether to enable or disable nested virtualization for the instance. 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 or disable nested virtualization for the instance. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.
      See Also:
    • dryRun

      public final Boolean dryRun()

      Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

      Returns:
      Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<ModifyInstanceCpuOptionsRequest.Builder,ModifyInstanceCpuOptionsRequest>
      Specified by:
      toBuilder in class Ec2Request
    • builder

      public static ModifyInstanceCpuOptionsRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ModifyInstanceCpuOptionsRequest.Builder> serializableBuilderClass()
    • hashCode

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo