AWS SDK for C++  1.9.67
AWS SDK for C++
UnsuccessfulInstanceCreditSpecificationItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 
52  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 
57  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
58 
62  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
63 
67  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
68 
72  inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
73 
77  inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
78 
82  inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
83 
84 
89  inline const UnsuccessfulInstanceCreditSpecificationItemError& GetError() const{ return m_error; }
90 
95  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
96 
101  inline void SetError(const UnsuccessfulInstanceCreditSpecificationItemError& value) { m_errorHasBeenSet = true; m_error = value; }
102 
107  inline void SetError(UnsuccessfulInstanceCreditSpecificationItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
108 
114 
120 
121  private:
122 
123  Aws::String m_instanceId;
124  bool m_instanceIdHasBeenSet;
125 
127  bool m_errorHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace EC2
132 } // namespace Aws
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::UnsuccessfulInstanceCreditSpecificationItem
UnsuccessfulInstanceCreditSpecificationItem(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItemError
Definition: UnsuccessfulInstanceCreditSpecificationItemError.h:34
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::operator=
UnsuccessfulInstanceCreditSpecificationItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::WithError
UnsuccessfulInstanceCreditSpecificationItem & WithError(UnsuccessfulInstanceCreditSpecificationItemError &&value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:119
AWSStreamFwd.h
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::SetInstanceId
void SetInstanceId(const char *value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:67
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
UnsuccessfulInstanceCreditSpecificationItemError.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::GetError
const UnsuccessfulInstanceCreditSpecificationItemError & GetError() const
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:89
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:52
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:95
AWSString.h
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:57
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::WithInstanceId
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(Aws::String &&value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:77
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::SetError
void SetError(const UnsuccessfulInstanceCreditSpecificationItemError &value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:101
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:34
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::WithError
UnsuccessfulInstanceCreditSpecificationItem & WithError(const UnsuccessfulInstanceCreditSpecificationItemError &value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:113
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::WithInstanceId
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(const char *value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:82
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::UnsuccessfulInstanceCreditSpecificationItem::SetError
void SetError(UnsuccessfulInstanceCreditSpecificationItemError &&value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:107
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::UnsuccessfulInstanceCreditSpecificationItem
UnsuccessfulInstanceCreditSpecificationItem()
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:47
EC2_EXPORTS.h
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem::WithInstanceId
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(const Aws::String &value)
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:72