AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceUsage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API InstanceUsage() = default;
31 AWS_EC2_API InstanceUsage(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API InstanceUsage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 InstanceUsage& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
61 inline int GetUsedInstanceCount() const { return m_usedInstanceCount; }
62 inline bool UsedInstanceCountHasBeenSet() const { return m_usedInstanceCountHasBeenSet; }
63 inline void SetUsedInstanceCount(int value) {
64 m_usedInstanceCountHasBeenSet = true;
65 m_usedInstanceCount = value;
66 }
69 return *this;
70 }
72 private:
73 Aws::String m_accountId;
74
75 int m_usedInstanceCount{0};
76 bool m_accountIdHasBeenSet = false;
77 bool m_usedInstanceCountHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceUsage & WithAccountId(AccountIdT &&value)
AWS_EC2_API InstanceUsage(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceUsage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceUsage & WithUsedInstanceCount(int value)
const Aws::String & GetAccountId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceUsage()=default
void SetAccountId(AccountIdT &&value)
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