AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
36 AWS_EC2_API TargetReservationValue() = default;
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 template<typename ReservationValueT = ReservationValue>
53 void SetReservationValue(ReservationValueT&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::forward<ReservationValueT>(value); }
54 template<typename ReservationValueT = ReservationValue>
55 TargetReservationValue& WithReservationValue(ReservationValueT&& value) { SetReservationValue(std::forward<ReservationValueT>(value)); return *this;}
57
59
63 inline const TargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
64 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
65 template<typename TargetConfigurationT = TargetConfiguration>
66 void SetTargetConfiguration(TargetConfigurationT&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::forward<TargetConfigurationT>(value); }
67 template<typename TargetConfigurationT = TargetConfiguration>
68 TargetReservationValue& WithTargetConfiguration(TargetConfigurationT&& value) { SetTargetConfiguration(std::forward<TargetConfigurationT>(value)); return *this;}
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(TargetConfigurationT &&value)
AWS_EC2_API TargetReservationValue(const Aws::Utils::Xml::XmlNode &xmlNode)
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(ReservationValueT &&value)
AWS_EC2_API TargetReservationValue()=default
TargetReservationValue & WithTargetConfiguration(TargetConfigurationT &&value)
const ReservationValue & GetReservationValue() const
void SetReservationValue(ReservationValueT &&value)
const TargetConfiguration & GetTargetConfiguration() const
std::basic_ostream< char, std::char_traits< char > > OStream