AWS SDK for C++  1.9.73
AWS SDK for C++
TargetConfigurationRequest.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 TargetConfigurationRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
65 
66 
70  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
71 
75  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
76 
80  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
81 
85  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
86 
90  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
91 
95  inline TargetConfigurationRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
96 
100  inline TargetConfigurationRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
101 
105  inline TargetConfigurationRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
106 
107  private:
108 
109  int m_instanceCount;
110  bool m_instanceCountHasBeenSet;
111 
112  Aws::String m_offeringId;
113  bool m_offeringIdHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace EC2
118 } // namespace Aws
Aws::EC2::Model::TargetConfigurationRequest::WithOfferingId
TargetConfigurationRequest & WithOfferingId(Aws::String &&value)
Definition: TargetConfigurationRequest.h:100
Aws::EC2::Model::TargetConfigurationRequest
Definition: TargetConfigurationRequest.h:32
Aws::EC2::Model::TargetConfigurationRequest::WithInstanceCount
TargetConfigurationRequest & WithInstanceCount(int value)
Definition: TargetConfigurationRequest.h:64
Aws::EC2::Model::TargetConfigurationRequest::GetInstanceCount
int GetInstanceCount() const
Definition: TargetConfigurationRequest.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetConfigurationRequest::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: TargetConfigurationRequest.h:70
AWSStreamFwd.h
Aws::EC2::Model::TargetConfigurationRequest::SetInstanceCount
void SetInstanceCount(int value)
Definition: TargetConfigurationRequest.h:58
Aws::EC2::Model::TargetConfigurationRequest::WithOfferingId
TargetConfigurationRequest & WithOfferingId(const char *value)
Definition: TargetConfigurationRequest.h:105
Aws::EC2::Model::TargetConfigurationRequest::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: TargetConfigurationRequest.h:85
Aws::EC2::Model::TargetConfigurationRequest::SetOfferingId
void SetOfferingId(const char *value)
Definition: TargetConfigurationRequest.h:90
Aws::EC2::Model::TargetConfigurationRequest::operator=
TargetConfigurationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TargetConfigurationRequest::WithOfferingId
TargetConfigurationRequest & WithOfferingId(const Aws::String &value)
Definition: TargetConfigurationRequest.h:95
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::TargetConfigurationRequest::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: TargetConfigurationRequest.h:75
Aws::EC2::Model::TargetConfigurationRequest::TargetConfigurationRequest
TargetConfigurationRequest()
Aws::EC2::Model::TargetConfigurationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TargetConfigurationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetConfigurationRequest::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: TargetConfigurationRequest.h:52
Aws::EC2::Model::TargetConfigurationRequest::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: TargetConfigurationRequest.h:80
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::TargetConfigurationRequest::TargetConfigurationRequest
TargetConfigurationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h