AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedNodeConfigurationOption.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/redshift/model/ReservedNode.h>
10#include <aws/redshift/model/ReservedNodeOffering.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
47 inline const ReservedNode& GetSourceReservedNode() const{ return m_sourceReservedNode; }
48 inline bool SourceReservedNodeHasBeenSet() const { return m_sourceReservedNodeHasBeenSet; }
49 inline void SetSourceReservedNode(const ReservedNode& value) { m_sourceReservedNodeHasBeenSet = true; m_sourceReservedNode = value; }
50 inline void SetSourceReservedNode(ReservedNode&& value) { m_sourceReservedNodeHasBeenSet = true; m_sourceReservedNode = std::move(value); }
54
56
59 inline int GetTargetReservedNodeCount() const{ return m_targetReservedNodeCount; }
60 inline bool TargetReservedNodeCountHasBeenSet() const { return m_targetReservedNodeCountHasBeenSet; }
61 inline void SetTargetReservedNodeCount(int value) { m_targetReservedNodeCountHasBeenSet = true; m_targetReservedNodeCount = value; }
64
66
67 inline const ReservedNodeOffering& GetTargetReservedNodeOffering() const{ return m_targetReservedNodeOffering; }
68 inline bool TargetReservedNodeOfferingHasBeenSet() const { return m_targetReservedNodeOfferingHasBeenSet; }
69 inline void SetTargetReservedNodeOffering(const ReservedNodeOffering& value) { m_targetReservedNodeOfferingHasBeenSet = true; m_targetReservedNodeOffering = value; }
70 inline void SetTargetReservedNodeOffering(ReservedNodeOffering&& value) { m_targetReservedNodeOfferingHasBeenSet = true; m_targetReservedNodeOffering = std::move(value); }
74 private:
75
76 ReservedNode m_sourceReservedNode;
77 bool m_sourceReservedNodeHasBeenSet = false;
78
79 int m_targetReservedNodeCount;
80 bool m_targetReservedNodeCountHasBeenSet = false;
81
82 ReservedNodeOffering m_targetReservedNodeOffering;
83 bool m_targetReservedNodeOfferingHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Redshift
88} // namespace Aws
ReservedNodeConfigurationOption & WithTargetReservedNodeOffering(ReservedNodeOffering &&value)
ReservedNodeConfigurationOption & WithSourceReservedNode(ReservedNode &&value)
ReservedNodeConfigurationOption & WithTargetReservedNodeCount(int value)
AWS_REDSHIFT_API ReservedNodeConfigurationOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNodeConfigurationOption & WithSourceReservedNode(const ReservedNode &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API ReservedNodeConfigurationOption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetReservedNodeOffering(const ReservedNodeOffering &value)
ReservedNodeConfigurationOption & WithTargetReservedNodeOffering(const ReservedNodeOffering &value)
std::basic_ostream< char, std::char_traits< char > > OStream