1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16   class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace ElasticBeanstalk
20 {
21 namespace Model
22 {
23 
24   /**
25    * <p>The AWS Elastic Beanstalk quota information for a single resource type in an
26    * AWS account. It reflects the resource's limits for this account.</p><p><h3>See
27    * Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ResourceQuota">AWS
29    * API Reference</a></p>
30    */
31   class AWS_ELASTICBEANSTALK_API ResourceQuota
32   {
33   public:
34     ResourceQuota();
35     ResourceQuota(const Aws::Utils::Xml::XmlNode& xmlNode);
36     ResourceQuota& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37 
38     void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39     void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
42     /**
43      * <p>The maximum number of instances of this Elastic Beanstalk resource type that
44      * an AWS account can use.</p>
45      */
GetMaximum()46     inline int GetMaximum() const{ return m_maximum; }
47 
48     /**
49      * <p>The maximum number of instances of this Elastic Beanstalk resource type that
50      * an AWS account can use.</p>
51      */
MaximumHasBeenSet()52     inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
53 
54     /**
55      * <p>The maximum number of instances of this Elastic Beanstalk resource type that
56      * an AWS account can use.</p>
57      */
SetMaximum(int value)58     inline void SetMaximum(int value) { m_maximumHasBeenSet = true; m_maximum = value; }
59 
60     /**
61      * <p>The maximum number of instances of this Elastic Beanstalk resource type that
62      * an AWS account can use.</p>
63      */
WithMaximum(int value)64     inline ResourceQuota& WithMaximum(int value) { SetMaximum(value); return *this;}
65 
66   private:
67 
68     int m_maximum;
69     bool m_maximumHasBeenSet;
70   };
71 
72 } // namespace Model
73 } // namespace ElasticBeanstalk
74 } // namespace Aws
75