AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstanceReservationValue.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/ReservationValue.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:
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
49 inline const ReservationValue& GetReservationValue() const{ return m_reservationValue; }
50 inline bool ReservationValueHasBeenSet() const { return m_reservationValueHasBeenSet; }
51 inline void SetReservationValue(const ReservationValue& value) { m_reservationValueHasBeenSet = true; m_reservationValue = value; }
52 inline void SetReservationValue(ReservationValue&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::move(value); }
56
58
61 inline const Aws::String& GetReservedInstanceId() const{ return m_reservedInstanceId; }
62 inline bool ReservedInstanceIdHasBeenSet() const { return m_reservedInstanceIdHasBeenSet; }
63 inline void SetReservedInstanceId(const Aws::String& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = value; }
64 inline void SetReservedInstanceId(Aws::String&& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = std::move(value); }
65 inline void SetReservedInstanceId(const char* value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId.assign(value); }
68 inline ReservedInstanceReservationValue& WithReservedInstanceId(const char* value) { SetReservedInstanceId(value); return *this;}
70 private:
71
72 ReservationValue m_reservationValue;
73 bool m_reservationValueHasBeenSet = false;
74
75 Aws::String m_reservedInstanceId;
76 bool m_reservedInstanceIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
ReservedInstanceReservationValue & WithReservedInstanceId(const Aws::String &value)
ReservedInstanceReservationValue & WithReservedInstanceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedInstanceReservationValue & WithReservedInstanceId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedInstanceReservationValue & WithReservationValue(const ReservationValue &value)
AWS_EC2_API ReservedInstanceReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ReservedInstanceReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstanceReservationValue & WithReservationValue(ReservationValue &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream