/**
* 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 Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ElasticsearchService
{
namespace Model
{
/**
* List of limits that are specific to a given InstanceType and for each of
* it's InstanceRole
.
See Also:
AWS
* API Reference
*/
class AdditionalLimit
{
public:
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit();
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline const Aws::String& GetLimitName() const{ return m_limitName; }
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline void SetLimitName(const Aws::String& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline void SetLimitName(Aws::String&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline void SetLimitName(const char* value) { m_limitNameHasBeenSet = true; m_limitName.assign(value); }
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline AdditionalLimit& WithLimitName(const Aws::String& value) { SetLimitName(value); return *this;}
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline AdditionalLimit& WithLimitName(Aws::String&& value) { SetLimitName(std::move(value)); return *this;}
/**
* Name of Additional Limit is specific to a given InstanceType and for each of
* it's InstanceRole
etc.
Attributes and their details:
*
- MaximumNumberOfDataNodesSupported
This attribute will be
* present in Master node only to specify how much data nodes upto which given
* ESPartitionInstanceType
can support as master node.
* - MaximumNumberOfDataNodesWithoutMasterNode
This attribute will be
* present in Data node only to specify how much data nodes of given
* ESPartitionInstanceType
upto which you don't need any master
* nodes to govern them.
*/
inline AdditionalLimit& WithLimitName(const char* value) { SetLimitName(value); return *this;}
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline const Aws::Vector& GetLimitValues() const{ return m_limitValues; }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline void SetLimitValues(const Aws::Vector& value) { m_limitValuesHasBeenSet = true; m_limitValues = value; }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline void SetLimitValues(Aws::Vector&& value) { m_limitValuesHasBeenSet = true; m_limitValues = std::move(value); }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline AdditionalLimit& WithLimitValues(const Aws::Vector& value) { SetLimitValues(value); return *this;}
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline AdditionalLimit& WithLimitValues(Aws::Vector&& value) { SetLimitValues(std::move(value)); return *this;}
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline AdditionalLimit& AddLimitValues(const Aws::String& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline AdditionalLimit& AddLimitValues(Aws::String&& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(std::move(value)); return *this; }
/**
* Value for given AdditionalLimit$LimitName
.
*/
inline AdditionalLimit& AddLimitValues(const char* value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
private:
Aws::String m_limitName;
bool m_limitNameHasBeenSet = false;
Aws::Vector m_limitValues;
bool m_limitValuesHasBeenSet = false;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws