AWS SDK for C++  1.9.104
AWS SDK for C++
ScheduledActionType.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const ResizeClusterMessage& GetResizeCluster() const{ return m_resizeCluster; }
49 
53  inline bool ResizeClusterHasBeenSet() const { return m_resizeClusterHasBeenSet; }
54 
58  inline void SetResizeCluster(const ResizeClusterMessage& value) { m_resizeClusterHasBeenSet = true; m_resizeCluster = value; }
59 
63  inline void SetResizeCluster(ResizeClusterMessage&& value) { m_resizeClusterHasBeenSet = true; m_resizeCluster = std::move(value); }
64 
68  inline ScheduledActionType& WithResizeCluster(const ResizeClusterMessage& value) { SetResizeCluster(value); return *this;}
69 
73  inline ScheduledActionType& WithResizeCluster(ResizeClusterMessage&& value) { SetResizeCluster(std::move(value)); return *this;}
74 
75 
79  inline const PauseClusterMessage& GetPauseCluster() const{ return m_pauseCluster; }
80 
84  inline bool PauseClusterHasBeenSet() const { return m_pauseClusterHasBeenSet; }
85 
89  inline void SetPauseCluster(const PauseClusterMessage& value) { m_pauseClusterHasBeenSet = true; m_pauseCluster = value; }
90 
94  inline void SetPauseCluster(PauseClusterMessage&& value) { m_pauseClusterHasBeenSet = true; m_pauseCluster = std::move(value); }
95 
99  inline ScheduledActionType& WithPauseCluster(const PauseClusterMessage& value) { SetPauseCluster(value); return *this;}
100 
104  inline ScheduledActionType& WithPauseCluster(PauseClusterMessage&& value) { SetPauseCluster(std::move(value)); return *this;}
105 
106 
110  inline const ResumeClusterMessage& GetResumeCluster() const{ return m_resumeCluster; }
111 
115  inline bool ResumeClusterHasBeenSet() const { return m_resumeClusterHasBeenSet; }
116 
120  inline void SetResumeCluster(const ResumeClusterMessage& value) { m_resumeClusterHasBeenSet = true; m_resumeCluster = value; }
121 
125  inline void SetResumeCluster(ResumeClusterMessage&& value) { m_resumeClusterHasBeenSet = true; m_resumeCluster = std::move(value); }
126 
130  inline ScheduledActionType& WithResumeCluster(const ResumeClusterMessage& value) { SetResumeCluster(value); return *this;}
131 
135  inline ScheduledActionType& WithResumeCluster(ResumeClusterMessage&& value) { SetResumeCluster(std::move(value)); return *this;}
136 
137  private:
138 
139  ResizeClusterMessage m_resizeCluster;
140  bool m_resizeClusterHasBeenSet;
141 
142  PauseClusterMessage m_pauseCluster;
143  bool m_pauseClusterHasBeenSet;
144 
145  ResumeClusterMessage m_resumeCluster;
146  bool m_resumeClusterHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace Redshift
151 } // namespace Aws
Aws::Redshift::Model::ScheduledActionType::GetResumeCluster
const ResumeClusterMessage & GetResumeCluster() const
Definition: ScheduledActionType.h:110
Aws::Redshift::Model::ScheduledActionType::WithResumeCluster
ScheduledActionType & WithResumeCluster(const ResumeClusterMessage &value)
Definition: ScheduledActionType.h:130
PauseClusterMessage.h
Aws::Redshift::Model::ScheduledActionType::SetResumeCluster
void SetResumeCluster(const ResumeClusterMessage &value)
Definition: ScheduledActionType.h:120
Aws::Redshift::Model::ResumeClusterMessage
Definition: ResumeClusterMessage.h:33
Aws::Redshift::Model::ScheduledActionType::WithResizeCluster
ScheduledActionType & WithResizeCluster(const ResizeClusterMessage &value)
Definition: ScheduledActionType.h:68
Aws::Redshift::Model::ScheduledActionType::operator=
ScheduledActionType & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ScheduledActionType::SetResizeCluster
void SetResizeCluster(const ResizeClusterMessage &value)
Definition: ScheduledActionType.h:58
Aws::Redshift::Model::ScheduledActionType::WithResumeCluster
ScheduledActionType & WithResumeCluster(ResumeClusterMessage &&value)
Definition: ScheduledActionType.h:135
Aws::Redshift::Model::PauseClusterMessage
Definition: PauseClusterMessage.h:33
AWSStreamFwd.h
Aws::Redshift::Model::ScheduledActionType::WithResizeCluster
ScheduledActionType & WithResizeCluster(ResizeClusterMessage &&value)
Definition: ScheduledActionType.h:73
Aws::Redshift::Model::ScheduledActionType::ScheduledActionType
ScheduledActionType(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ScheduledActionType::WithPauseCluster
ScheduledActionType & WithPauseCluster(const PauseClusterMessage &value)
Definition: ScheduledActionType.h:99
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ScheduledActionType::GetPauseCluster
const PauseClusterMessage & GetPauseCluster() const
Definition: ScheduledActionType.h:79
Aws::Redshift::Model::ScheduledActionType::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ScheduledActionType::PauseClusterHasBeenSet
bool PauseClusterHasBeenSet() const
Definition: ScheduledActionType.h:84
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ScheduledActionType::SetResizeCluster
void SetResizeCluster(ResizeClusterMessage &&value)
Definition: ScheduledActionType.h:63
ResumeClusterMessage.h
Aws::Redshift::Model::ScheduledActionType::SetResumeCluster
void SetResumeCluster(ResumeClusterMessage &&value)
Definition: ScheduledActionType.h:125
Aws::Redshift::Model::ScheduledActionType::GetResizeCluster
const ResizeClusterMessage & GetResizeCluster() const
Definition: ScheduledActionType.h:48
Aws::Redshift::Model::ScheduledActionType::SetPauseCluster
void SetPauseCluster(const PauseClusterMessage &value)
Definition: ScheduledActionType.h:89
Aws::Redshift::Model::ScheduledActionType::SetPauseCluster
void SetPauseCluster(PauseClusterMessage &&value)
Definition: ScheduledActionType.h:94
ResizeClusterMessage.h
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ScheduledActionType::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ScheduledActionType
Definition: ScheduledActionType.h:35
Aws::Redshift::Model::ScheduledActionType::ResumeClusterHasBeenSet
bool ResumeClusterHasBeenSet() const
Definition: ScheduledActionType.h:115
Aws::Redshift::Model::ScheduledActionType::ResizeClusterHasBeenSet
bool ResizeClusterHasBeenSet() const
Definition: ScheduledActionType.h:53
Aws::Redshift::Model::ScheduledActionType::ScheduledActionType
ScheduledActionType()
Aws::Redshift::Model::ScheduledActionType::WithPauseCluster
ScheduledActionType & WithPauseCluster(PauseClusterMessage &&value)
Definition: ScheduledActionType.h:104
Aws::Redshift::Model::ResizeClusterMessage
Definition: ResizeClusterMessage.h:33