AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnsuccessfulItem.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/UnsuccessfulItemError.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API UnsuccessfulItem();
37 AWS_EC2_API UnsuccessfulItem(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const UnsuccessfulItemError& GetError() const{ return m_error; }
49 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
50 inline void SetError(const UnsuccessfulItemError& value) { m_errorHasBeenSet = true; m_error = value; }
51 inline void SetError(UnsuccessfulItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
52 inline UnsuccessfulItem& WithError(const UnsuccessfulItemError& value) { SetError(value); return *this;}
53 inline UnsuccessfulItem& WithError(UnsuccessfulItemError&& value) { SetError(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
63 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
64 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
65 inline UnsuccessfulItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
66 inline UnsuccessfulItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
67 inline UnsuccessfulItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
69 private:
70
72 bool m_errorHasBeenSet = false;
73
74 Aws::String m_resourceId;
75 bool m_resourceIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
const UnsuccessfulItemError & GetError() const
UnsuccessfulItem & WithError(UnsuccessfulItemError &&value)
void SetError(const UnsuccessfulItemError &value)
AWS_EC2_API UnsuccessfulItem(const Aws::Utils::Xml::XmlNode &xmlNode)
UnsuccessfulItem & WithResourceId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetResourceId() const
void SetResourceId(Aws::String &&value)
void SetResourceId(const char *value)
void SetError(UnsuccessfulItemError &&value)
UnsuccessfulItem & WithResourceId(const Aws::String &value)
AWS_EC2_API UnsuccessfulItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UnsuccessfulItem & WithResourceId(Aws::String &&value)
UnsuccessfulItem & WithError(const UnsuccessfulItemError &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream