/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

Contains the processor features of a DB instance class.

To specify the * number of CPU cores, use the coreCount feature name for the * Name parameter. To specify the number of threads per core, use the * threadsPerCore feature name for the Name * parameter.

You can set the processor features of the DB instance class * for a DB instance when you call one of the following actions:

  • * CreateDBInstance

  • ModifyDBInstance *

  • RestoreDBInstanceFromDBSnapshot

  • *

    RestoreDBInstanceFromS3

  • * RestoreDBInstanceToPointInTime

You can view the * valid processor values for a particular instance class by calling the * DescribeOrderableDBInstanceOptions action and specifying the * instance class for the DBInstanceClass parameter.

In * addition, you can use the following actions for DB instance class processor * information:

  • DescribeDBInstances

  • *

    DescribeDBSnapshots

  • * DescribeValidDBInstanceModifications

If you * call DescribeDBInstances, ProcessorFeature returns * non-null values only if the following conditions are met:

  • You * are accessing an Oracle DB instance.

  • Your Oracle DB instance * class supports configuring the number of CPU cores and threads per core.

    *
  • The current number CPU cores and threads is set to a non-default * value.

For more information, see Configuring * the Processor of the DB Instance Class in the Amazon RDS User Guide. *

See Also:

AWS * API Reference

*/ class ProcessorFeature { public: AWS_RDS_API ProcessorFeature(); AWS_RDS_API ProcessorFeature(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API ProcessorFeature& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline ProcessorFeature& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline ProcessorFeature& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the processor feature. Valid names are coreCount and * threadsPerCore.

*/ inline ProcessorFeature& WithName(const char* value) { SetName(value); return *this;} /** *

The value of a processor feature name.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of a processor feature name.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of a processor feature name.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of a processor feature name.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of a processor feature name.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of a processor feature name.

*/ inline ProcessorFeature& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of a processor feature name.

*/ inline ProcessorFeature& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of a processor feature name.

*/ inline ProcessorFeature& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws