AWS SDK for C++  1.9.71
AWS SDK for C++
InstanceUsage.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
53  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
59  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
60 
65  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
66 
71  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
72 
77  inline InstanceUsage& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
78 
83  inline InstanceUsage& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
84 
89  inline InstanceUsage& WithAccountId(const char* value) { SetAccountId(value); return *this;}
90 
91 
96  inline int GetUsedInstanceCount() const{ return m_usedInstanceCount; }
97 
102  inline bool UsedInstanceCountHasBeenSet() const { return m_usedInstanceCountHasBeenSet; }
103 
108  inline void SetUsedInstanceCount(int value) { m_usedInstanceCountHasBeenSet = true; m_usedInstanceCount = value; }
109 
114  inline InstanceUsage& WithUsedInstanceCount(int value) { SetUsedInstanceCount(value); return *this;}
115 
116  private:
117 
118  Aws::String m_accountId;
119  bool m_accountIdHasBeenSet;
120 
121  int m_usedInstanceCount;
122  bool m_usedInstanceCountHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::EC2::Model::InstanceUsage::UsedInstanceCountHasBeenSet
bool UsedInstanceCountHasBeenSet() const
Definition: InstanceUsage.h:102
Aws::EC2::Model::InstanceUsage::WithAccountId
InstanceUsage & WithAccountId(Aws::String &&value)
Definition: InstanceUsage.h:83
Aws::EC2::Model::InstanceUsage::operator=
InstanceUsage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceUsage::WithAccountId
InstanceUsage & WithAccountId(const char *value)
Definition: InstanceUsage.h:89
Aws::EC2::Model::InstanceUsage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceUsage::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: InstanceUsage.h:65
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceUsage
Definition: InstanceUsage.h:33
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceUsage::SetUsedInstanceCount
void SetUsedInstanceCount(int value)
Definition: InstanceUsage.h:108
Aws::EC2::Model::InstanceUsage::InstanceUsage
InstanceUsage(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::InstanceUsage::GetAccountId
const Aws::String & GetAccountId() const
Definition: InstanceUsage.h:47
Aws::EC2::Model::InstanceUsage::WithUsedInstanceCount
InstanceUsage & WithUsedInstanceCount(int value)
Definition: InstanceUsage.h:114
Aws::EC2::Model::InstanceUsage::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: InstanceUsage.h:59
Aws::EC2::Model::InstanceUsage::WithAccountId
InstanceUsage & WithAccountId(const Aws::String &value)
Definition: InstanceUsage.h:77
Aws::EC2::Model::InstanceUsage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceUsage::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: InstanceUsage.h:53
Aws::EC2::Model::InstanceUsage::GetUsedInstanceCount
int GetUsedInstanceCount() const
Definition: InstanceUsage.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceUsage::SetAccountId
void SetAccountId(const char *value)
Definition: InstanceUsage.h:71
Aws::EC2::Model::InstanceUsage::InstanceUsage
InstanceUsage()
EC2_EXPORTS.h