AWS SDK for C++  1.9.104
AWS SDK for C++
InstanceCount.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 
32  {
33  public:
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 
46  inline int GetInstanceCount() const{ return m_instanceCount; }
47 
52  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
53 
58  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
59 
64  inline InstanceCount& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
65 
66 
70  inline const ListingState& GetState() const{ return m_state; }
71 
75  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 
80  inline void SetState(const ListingState& value) { m_stateHasBeenSet = true; m_state = value; }
81 
85  inline void SetState(ListingState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
86 
90  inline InstanceCount& WithState(const ListingState& value) { SetState(value); return *this;}
91 
95  inline InstanceCount& WithState(ListingState&& value) { SetState(std::move(value)); return *this;}
96 
97  private:
98 
99  int m_instanceCount;
100  bool m_instanceCountHasBeenSet;
101 
102  ListingState m_state;
103  bool m_stateHasBeenSet;
104  };
105 
106 } // namespace Model
107 } // namespace EC2
108 } // namespace Aws
Aws::EC2::Model::InstanceCount::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceCount::StateHasBeenSet
bool StateHasBeenSet() const
Definition: InstanceCount.h:75
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceCount::InstanceCount
InstanceCount(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::InstanceCount::SetState
void SetState(ListingState &&value)
Definition: InstanceCount.h:85
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceCount::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: InstanceCount.h:52
Aws::EC2::Model::InstanceCount::GetInstanceCount
int GetInstanceCount() const
Definition: InstanceCount.h:46
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceCount::SetState
void SetState(const ListingState &value)
Definition: InstanceCount.h:80
Aws::EC2::Model::InstanceCount::WithState
InstanceCount & WithState(ListingState &&value)
Definition: InstanceCount.h:95
Aws::EC2::Model::InstanceCount::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceCount::InstanceCount
InstanceCount()
Aws::EC2::Model::InstanceCount::GetState
const ListingState & GetState() const
Definition: InstanceCount.h:70
Aws::EC2::Model::InstanceCount::operator=
InstanceCount & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceCount::SetInstanceCount
void SetInstanceCount(int value)
Definition: InstanceCount.h:58
Aws::EC2::Model::InstanceCount::WithState
InstanceCount & WithState(const ListingState &value)
Definition: InstanceCount.h:90
Aws::EC2::Model::InstanceCount::WithInstanceCount
InstanceCount & WithInstanceCount(int value)
Definition: InstanceCount.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ListingState
ListingState
Definition: ListingState.h:17
ListingState.h
Aws::EC2::Model::InstanceCount
Definition: InstanceCount.h:32
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h