AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnsuccessfulInstanceCreditSpecificationItem.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/UnsuccessfulInstanceCreditSpecificationItemError.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:
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 Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
54 inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
63 inline const UnsuccessfulInstanceCreditSpecificationItemError& GetError() const{ return m_error; }
64 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
65 inline void SetError(const UnsuccessfulInstanceCreditSpecificationItemError& value) { m_errorHasBeenSet = true; m_error = value; }
66 inline void SetError(UnsuccessfulInstanceCreditSpecificationItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
70 private:
71
72 Aws::String m_instanceId;
73 bool m_instanceIdHasBeenSet = false;
74
76 bool m_errorHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API UnsuccessfulInstanceCreditSpecificationItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const UnsuccessfulInstanceCreditSpecificationItemError & GetError() const
UnsuccessfulInstanceCreditSpecificationItem & WithError(const UnsuccessfulInstanceCreditSpecificationItemError &value)
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(Aws::String &&value)
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(const Aws::String &value)
void SetError(const UnsuccessfulInstanceCreditSpecificationItemError &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API UnsuccessfulInstanceCreditSpecificationItem(const Aws::Utils::Xml::XmlNode &xmlNode)
UnsuccessfulInstanceCreditSpecificationItem & WithInstanceId(const char *value)
void SetError(UnsuccessfulInstanceCreditSpecificationItemError &&value)
UnsuccessfulInstanceCreditSpecificationItem & WithError(UnsuccessfulInstanceCreditSpecificationItemError &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream