204 lines
9.7 KiB
C++
204 lines
9.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/es/ElasticsearchService_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ElasticsearchService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> List of limits that are specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> . </p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AdditionalLimit">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ELASTICSEARCHSERVICE_API AdditionalLimit
|
|
{
|
|
public:
|
|
AdditionalLimit();
|
|
AdditionalLimit(Aws::Utils::Json::JsonView jsonValue);
|
|
AdditionalLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline const Aws::String& GetLimitName() const{ return m_limitName; }
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline void SetLimitName(const Aws::String& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline void SetLimitName(Aws::String&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline void SetLimitName(const char* value) { m_limitNameHasBeenSet = true; m_limitName.assign(value); }
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline AdditionalLimit& WithLimitName(const Aws::String& value) { SetLimitName(value); return *this;}
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline AdditionalLimit& WithLimitName(Aws::String&& value) { SetLimitName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Name of Additional Limit is specific to a given InstanceType and for each of
|
|
* it's <code> <a>InstanceRole</a> </code> etc. <br/> Attributes and their details:
|
|
* <br/> <ul> <li>MaximumNumberOfDataNodesSupported</li> This attribute will be
|
|
* present in Master node only to specify how much data nodes upto which given
|
|
* <code> <a>ESPartitionInstanceType</a> </code> can support as master node.
|
|
* <li>MaximumNumberOfDataNodesWithoutMasterNode</li> This attribute will be
|
|
* present in Data node only to specify how much data nodes of given <code>
|
|
* <a>ESPartitionInstanceType</a> </code> upto which you don't need any master
|
|
* nodes to govern them. </ul> </p>
|
|
*/
|
|
inline AdditionalLimit& WithLimitName(const char* value) { SetLimitName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetLimitValues() const{ return m_limitValues; }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline void SetLimitValues(const Aws::Vector<Aws::String>& value) { m_limitValuesHasBeenSet = true; m_limitValues = value; }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline void SetLimitValues(Aws::Vector<Aws::String>&& value) { m_limitValuesHasBeenSet = true; m_limitValues = std::move(value); }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline AdditionalLimit& WithLimitValues(const Aws::Vector<Aws::String>& value) { SetLimitValues(value); return *this;}
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline AdditionalLimit& WithLimitValues(Aws::Vector<Aws::String>&& value) { SetLimitValues(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline AdditionalLimit& AddLimitValues(const Aws::String& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline AdditionalLimit& AddLimitValues(Aws::String&& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p> Value for given <code> <a>AdditionalLimit$LimitName</a> </code> . </p>
|
|
*/
|
|
inline AdditionalLimit& AddLimitValues(const char* value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_limitName;
|
|
bool m_limitNameHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_limitValues;
|
|
bool m_limitValuesHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ElasticsearchService
|
|
} // namespace Aws
|