AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetReservationValue.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/ec2/model/TargetConfiguration.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
50 inline const ReservationValue& GetReservationValue() const{ return m_reservationValue; }
51 inline bool ReservationValueHasBeenSet() const { return m_reservationValueHasBeenSet; }
52 inline void SetReservationValue(const ReservationValue& value) { m_reservationValueHasBeenSet = true; m_reservationValue = value; }
53 inline void SetReservationValue(ReservationValue&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::move(value); }
55 inline TargetReservationValue& WithReservationValue(ReservationValue&& value) { SetReservationValue(std::move(value)); return *this;}
57
59
63 inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
64 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
65 inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
66 inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
70 private:
71
72 ReservationValue m_reservationValue;
73 bool m_reservationValueHasBeenSet = false;
74
75 TargetConfiguration m_targetConfiguration;
76 bool m_targetConfigurationHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
void SetTargetConfiguration(TargetConfiguration &&value)
TargetReservationValue & WithTargetConfiguration(TargetConfiguration &&value)
AWS_EC2_API TargetReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetReservationValue & WithReservationValue(ReservationValue &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TargetReservationValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetReservationValue & WithReservationValue(const ReservationValue &value)
TargetReservationValue & WithTargetConfiguration(const TargetConfiguration &value)
void SetReservationValue(const ReservationValue &value)
const ReservationValue & GetReservationValue() const
void SetReservationValue(ReservationValue &&value)
void SetTargetConfiguration(const TargetConfiguration &value)
const TargetConfiguration & GetTargetConfiguration() const
std::basic_ostream< char, std::char_traits< char > > OStream