AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingParameters.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/cloudsearch/model/PartitionInstanceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudSearch
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDSEARCH_API ScalingParameters();
36 AWS_CLOUDSEARCH_API ScalingParameters(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDSEARCH_API ScalingParameters& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const PartitionInstanceType& GetDesiredInstanceType() const{ return m_desiredInstanceType; }
49 inline bool DesiredInstanceTypeHasBeenSet() const { return m_desiredInstanceTypeHasBeenSet; }
50 inline void SetDesiredInstanceType(const PartitionInstanceType& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = value; }
51 inline void SetDesiredInstanceType(PartitionInstanceType&& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = std::move(value); }
55
57
60 inline int GetDesiredReplicationCount() const{ return m_desiredReplicationCount; }
61 inline bool DesiredReplicationCountHasBeenSet() const { return m_desiredReplicationCountHasBeenSet; }
62 inline void SetDesiredReplicationCount(int value) { m_desiredReplicationCountHasBeenSet = true; m_desiredReplicationCount = value; }
65
67
71 inline int GetDesiredPartitionCount() const{ return m_desiredPartitionCount; }
72 inline bool DesiredPartitionCountHasBeenSet() const { return m_desiredPartitionCountHasBeenSet; }
73 inline void SetDesiredPartitionCount(int value) { m_desiredPartitionCountHasBeenSet = true; m_desiredPartitionCount = value; }
74 inline ScalingParameters& WithDesiredPartitionCount(int value) { SetDesiredPartitionCount(value); return *this;}
76 private:
77
78 PartitionInstanceType m_desiredInstanceType;
79 bool m_desiredInstanceTypeHasBeenSet = false;
80
81 int m_desiredReplicationCount;
82 bool m_desiredReplicationCountHasBeenSet = false;
83
84 int m_desiredPartitionCount;
85 bool m_desiredPartitionCountHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudSearch
90} // namespace Aws
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScalingParameters & WithDesiredInstanceType(const PartitionInstanceType &value)
ScalingParameters & WithDesiredInstanceType(PartitionInstanceType &&value)
void SetDesiredInstanceType(PartitionInstanceType &&value)
ScalingParameters & WithDesiredPartitionCount(int value)
void SetDesiredInstanceType(const PartitionInstanceType &value)
AWS_CLOUDSEARCH_API ScalingParameters & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API ScalingParameters(const Aws::Utils::Xml::XmlNode &xmlNode)
ScalingParameters & WithDesiredReplicationCount(int value)
const PartitionInstanceType & GetDesiredInstanceType() const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream