AWS SDK for C++  0.12.9
AWS SDK for C++
Limits.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudSearch
29 {
30 namespace Model
31 {
32 
34  {
35  public:
36  Limits();
37  Limits(const Aws::Utils::Xml::XmlNode& xmlNode);
38  Limits& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
44  inline long GetMaximumReplicationCount() const{ return m_maximumReplicationCount; }
45 
46 
47  inline void SetMaximumReplicationCount(long value) { m_maximumReplicationCountHasBeenSet = true; m_maximumReplicationCount = value; }
48 
49 
50  inline Limits& WithMaximumReplicationCount(long value) { SetMaximumReplicationCount(value); return *this;}
51 
52 
53  inline long GetMaximumPartitionCount() const{ return m_maximumPartitionCount; }
54 
55 
56  inline void SetMaximumPartitionCount(long value) { m_maximumPartitionCountHasBeenSet = true; m_maximumPartitionCount = value; }
57 
58 
59  inline Limits& WithMaximumPartitionCount(long value) { SetMaximumPartitionCount(value); return *this;}
60 
61  private:
62  long m_maximumReplicationCount;
63  bool m_maximumReplicationCountHasBeenSet;
64  long m_maximumPartitionCount;
65  bool m_maximumPartitionCountHasBeenSet;
66  };
67 
68 } // namespace Model
69 } // namespace CloudSearch
70 } // namespace Aws
long GetMaximumPartitionCount() const
Definition: Limits.h:53
void SetMaximumReplicationCount(long value)
Definition: Limits.h:47
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Limits & WithMaximumReplicationCount(long value)
Definition: Limits.h:50
long GetMaximumReplicationCount() const
Definition: Limits.h:44
void SetMaximumPartitionCount(long value)
Definition: Limits.h:56
Limits & WithMaximumPartitionCount(long value)
Definition: Limits.h:59
#define AWS_CLOUDSEARCH_API
JSON (JavaScript Object Notation).