/** * 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 CloudSearch { namespace Model { /** *

The desired instance type and desired number of replicas of each index * partition.

See Also:

AWS * API Reference

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

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline const PartitionInstanceType& GetDesiredInstanceType() const{ return m_desiredInstanceType; } /** *

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline bool DesiredInstanceTypeHasBeenSet() const { return m_desiredInstanceTypeHasBeenSet; } /** *

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline void SetDesiredInstanceType(const PartitionInstanceType& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = value; } /** *

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline void SetDesiredInstanceType(PartitionInstanceType&& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = std::move(value); } /** *

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline ScalingParameters& WithDesiredInstanceType(const PartitionInstanceType& value) { SetDesiredInstanceType(value); return *this;} /** *

The instance type that you want to preconfigure for your domain. For example, * search.m1.small.

*/ inline ScalingParameters& WithDesiredInstanceType(PartitionInstanceType&& value) { SetDesiredInstanceType(std::move(value)); return *this;} /** *

The number of replicas you want to preconfigure for each index partition.

*/ inline int GetDesiredReplicationCount() const{ return m_desiredReplicationCount; } /** *

The number of replicas you want to preconfigure for each index partition.

*/ inline bool DesiredReplicationCountHasBeenSet() const { return m_desiredReplicationCountHasBeenSet; } /** *

The number of replicas you want to preconfigure for each index partition.

*/ inline void SetDesiredReplicationCount(int value) { m_desiredReplicationCountHasBeenSet = true; m_desiredReplicationCount = value; } /** *

The number of replicas you want to preconfigure for each index partition.

*/ inline ScalingParameters& WithDesiredReplicationCount(int value) { SetDesiredReplicationCount(value); return *this;} /** *

The number of partitions you want to preconfigure for your domain. Only valid * when you select m2.2xlarge as the desired instance type.

*/ inline int GetDesiredPartitionCount() const{ return m_desiredPartitionCount; } /** *

The number of partitions you want to preconfigure for your domain. Only valid * when you select m2.2xlarge as the desired instance type.

*/ inline bool DesiredPartitionCountHasBeenSet() const { return m_desiredPartitionCountHasBeenSet; } /** *

The number of partitions you want to preconfigure for your domain. Only valid * when you select m2.2xlarge as the desired instance type.

*/ inline void SetDesiredPartitionCount(int value) { m_desiredPartitionCountHasBeenSet = true; m_desiredPartitionCount = value; } /** *

The number of partitions you want to preconfigure for your domain. Only valid * when you select m2.2xlarge as the desired instance type.

*/ inline ScalingParameters& WithDesiredPartitionCount(int value) { SetDesiredPartitionCount(value); return *this;} private: PartitionInstanceType m_desiredInstanceType; bool m_desiredInstanceTypeHasBeenSet = false; int m_desiredReplicationCount; bool m_desiredReplicationCountHasBeenSet = false; int m_desiredPartitionCount; bool m_desiredPartitionCountHasBeenSet = false; }; } // namespace Model } // namespace CloudSearch } // namespace Aws