AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceUsage.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API InstanceUsage();
36 AWS_EC2_API InstanceUsage(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API InstanceUsage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline InstanceUsage& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline InstanceUsage& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline InstanceUsage& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
63 inline int GetUsedInstanceCount() const{ return m_usedInstanceCount; }
64 inline bool UsedInstanceCountHasBeenSet() const { return m_usedInstanceCountHasBeenSet; }
65 inline void SetUsedInstanceCount(int value) { m_usedInstanceCountHasBeenSet = true; m_usedInstanceCount = value; }
66 inline InstanceUsage& WithUsedInstanceCount(int value) { SetUsedInstanceCount(value); return *this;}
68 private:
69
70 Aws::String m_accountId;
71 bool m_accountIdHasBeenSet = false;
72
73 int m_usedInstanceCount;
74 bool m_usedInstanceCountHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceUsage & WithAccountId(const char *value)
AWS_EC2_API InstanceUsage(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAccountId(const char *value)
AWS_EC2_API InstanceUsage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceUsage & WithUsedInstanceCount(int value)
InstanceUsage & WithAccountId(Aws::String &&value)
void SetAccountId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
const Aws::String & GetAccountId() const
InstanceUsage & WithAccountId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUsedInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream