AWS SDK for C++  0.14.3
AWS SDK for C++
ScalingParameters.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudSearch
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  ScalingParameters& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
52  inline const PartitionInstanceType& GetDesiredInstanceType() const{ return m_desiredInstanceType; }
53 
58  inline void SetDesiredInstanceType(const PartitionInstanceType& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = value; }
59 
64  inline void SetDesiredInstanceType(PartitionInstanceType&& value) { m_desiredInstanceTypeHasBeenSet = true; m_desiredInstanceType = value; }
65 
70  inline ScalingParameters& WithDesiredInstanceType(const PartitionInstanceType& value) { SetDesiredInstanceType(value); return *this;}
71 
76  inline ScalingParameters& WithDesiredInstanceType(PartitionInstanceType&& value) { SetDesiredInstanceType(value); return *this;}
77 
81  inline int GetDesiredReplicationCount() const{ return m_desiredReplicationCount; }
82 
86  inline void SetDesiredReplicationCount(int value) { m_desiredReplicationCountHasBeenSet = true; m_desiredReplicationCount = value; }
87 
91  inline ScalingParameters& WithDesiredReplicationCount(int value) { SetDesiredReplicationCount(value); return *this;}
92 
97  inline int GetDesiredPartitionCount() const{ return m_desiredPartitionCount; }
98 
103  inline void SetDesiredPartitionCount(int value) { m_desiredPartitionCountHasBeenSet = true; m_desiredPartitionCount = value; }
104 
109  inline ScalingParameters& WithDesiredPartitionCount(int value) { SetDesiredPartitionCount(value); return *this;}
110 
111  private:
112  PartitionInstanceType m_desiredInstanceType;
113  bool m_desiredInstanceTypeHasBeenSet;
114  int m_desiredReplicationCount;
115  bool m_desiredReplicationCountHasBeenSet;
116  int m_desiredPartitionCount;
117  bool m_desiredPartitionCountHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace CloudSearch
122 } // namespace Aws
void SetDesiredInstanceType(PartitionInstanceType &&value)
const PartitionInstanceType & GetDesiredInstanceType() const
ScalingParameters & WithDesiredInstanceType(PartitionInstanceType &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ScalingParameters & WithDesiredReplicationCount(int value)
#define AWS_CLOUDSEARCH_API
ScalingParameters & WithDesiredInstanceType(const PartitionInstanceType &value)
void SetDesiredInstanceType(const PartitionInstanceType &value)
ScalingParameters & WithDesiredPartitionCount(int value)
JSON (JavaScript Object Notation).