AWS SDK for C++  1.9.102
AWS SDK for C++
UnsuccessfulItem.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 UnsuccessfulItemError& GetError() const{ return m_error; }
48 
52  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
53 
57  inline void SetError(const UnsuccessfulItemError& value) { m_errorHasBeenSet = true; m_error = value; }
58 
62  inline void SetError(UnsuccessfulItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
63 
67  inline UnsuccessfulItem& WithError(const UnsuccessfulItemError& value) { SetError(value); return *this;}
68 
72  inline UnsuccessfulItem& WithError(UnsuccessfulItemError&& value) { SetError(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
79 
83  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
84 
88  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
89 
93  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
94 
98  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
99 
103  inline UnsuccessfulItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
104 
108  inline UnsuccessfulItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
109 
113  inline UnsuccessfulItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
114 
115  private:
116 
117  UnsuccessfulItemError m_error;
118  bool m_errorHasBeenSet;
119 
120  Aws::String m_resourceId;
121  bool m_resourceIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::UnsuccessfulItem::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: UnsuccessfulItem.h:83
Aws::EC2::Model::UnsuccessfulItem
Definition: UnsuccessfulItem.h:34
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UnsuccessfulItem::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: UnsuccessfulItem.h:88
Aws::EC2::Model::UnsuccessfulItem::GetResourceId
const Aws::String & GetResourceId() const
Definition: UnsuccessfulItem.h:78
AWSStreamFwd.h
Aws::EC2::Model::UnsuccessfulItem::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: UnsuccessfulItem.h:52
Aws::EC2::Model::UnsuccessfulItem::WithResourceId
UnsuccessfulItem & WithResourceId(Aws::String &&value)
Definition: UnsuccessfulItem.h:108
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::UnsuccessfulItem::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: UnsuccessfulItem.h:93
Aws::EC2::Model::UnsuccessfulItem::UnsuccessfulItem
UnsuccessfulItem()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UnsuccessfulItem::UnsuccessfulItem
UnsuccessfulItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UnsuccessfulItem::SetError
void SetError(const UnsuccessfulItemError &value)
Definition: UnsuccessfulItem.h:57
AWSString.h
Aws::EC2::Model::UnsuccessfulItem::WithError
UnsuccessfulItem & WithError(const UnsuccessfulItemError &value)
Definition: UnsuccessfulItem.h:67
Aws::EC2::Model::UnsuccessfulItem::GetError
const UnsuccessfulItemError & GetError() const
Definition: UnsuccessfulItem.h:47
Aws::EC2::Model::UnsuccessfulItem::WithResourceId
UnsuccessfulItem & WithResourceId(const Aws::String &value)
Definition: UnsuccessfulItem.h:103
Aws::EC2::Model::UnsuccessfulItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
UnsuccessfulItemError.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UnsuccessfulItem::WithResourceId
UnsuccessfulItem & WithResourceId(const char *value)
Definition: UnsuccessfulItem.h:113
Aws::EC2::Model::UnsuccessfulItem::operator=
UnsuccessfulItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::UnsuccessfulItem::SetError
void SetError(UnsuccessfulItemError &&value)
Definition: UnsuccessfulItem.h:62
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::UnsuccessfulItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::UnsuccessfulItem::WithError
UnsuccessfulItem & WithError(UnsuccessfulItemError &&value)
Definition: UnsuccessfulItem.h:72
Aws::EC2::Model::UnsuccessfulItem::SetResourceId
void SetResourceId(const char *value)
Definition: UnsuccessfulItem.h:98
EC2_EXPORTS.h
Aws::EC2::Model::UnsuccessfulItemError
Definition: UnsuccessfulItemError.h:35