AWS SDK for C++  1.9.65
AWS SDK for C++
TargetConfiguration.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 int GetInstanceCount() const{ return m_instanceCount; }
48 
53  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
54 
59  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
60 
65  inline TargetConfiguration& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
66 
67 
71  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
72 
76  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
77 
81  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
82 
86  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
87 
91  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
92 
96  inline TargetConfiguration& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
97 
101  inline TargetConfiguration& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
102 
106  inline TargetConfiguration& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
107 
108  private:
109 
110  int m_instanceCount;
111  bool m_instanceCountHasBeenSet;
112 
113  Aws::String m_offeringId;
114  bool m_offeringIdHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace EC2
119 } // namespace Aws
Aws::EC2::Model::TargetConfiguration
Definition: TargetConfiguration.h:33
Aws::EC2::Model::TargetConfiguration::TargetConfiguration
TargetConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetConfiguration::WithOfferingId
TargetConfiguration & WithOfferingId(const char *value)
Definition: TargetConfiguration.h:106
Aws::EC2::Model::TargetConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TargetConfiguration::WithOfferingId
TargetConfiguration & WithOfferingId(Aws::String &&value)
Definition: TargetConfiguration.h:101
Aws::EC2::Model::TargetConfiguration::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: TargetConfiguration.h:86
Aws::EC2::Model::TargetConfiguration::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: TargetConfiguration.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetConfiguration::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: TargetConfiguration.h:71
Aws::EC2::Model::TargetConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TargetConfiguration::TargetConfiguration
TargetConfiguration()
AWSString.h
Aws::EC2::Model::TargetConfiguration::WithOfferingId
TargetConfiguration & WithOfferingId(const Aws::String &value)
Definition: TargetConfiguration.h:96
Aws::EC2::Model::TargetConfiguration::SetInstanceCount
void SetInstanceCount(int value)
Definition: TargetConfiguration.h:59
Aws::EC2::Model::TargetConfiguration::GetInstanceCount
int GetInstanceCount() const
Definition: TargetConfiguration.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetConfiguration::operator=
TargetConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetConfiguration::WithInstanceCount
TargetConfiguration & WithInstanceCount(int value)
Definition: TargetConfiguration.h:65
Aws::EC2::Model::TargetConfiguration::SetOfferingId
void SetOfferingId(const char *value)
Definition: TargetConfiguration.h:91
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::TargetConfiguration::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: TargetConfiguration.h:53
Aws::EC2::Model::TargetConfiguration::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: TargetConfiguration.h:76
EC2_EXPORTS.h