AWS SDK for C++  1.9.103
AWS SDK for C++
ClusterAssociatedToSchedule.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
47 
51  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
52 
56  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
57 
61  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
62 
66  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
67 
71  inline ClusterAssociatedToSchedule& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
72 
76  inline ClusterAssociatedToSchedule& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
77 
81  inline ClusterAssociatedToSchedule& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
82 
83 
87  inline const ScheduleState& GetScheduleAssociationState() const{ return m_scheduleAssociationState; }
88 
92  inline bool ScheduleAssociationStateHasBeenSet() const { return m_scheduleAssociationStateHasBeenSet; }
93 
97  inline void SetScheduleAssociationState(const ScheduleState& value) { m_scheduleAssociationStateHasBeenSet = true; m_scheduleAssociationState = value; }
98 
102  inline void SetScheduleAssociationState(ScheduleState&& value) { m_scheduleAssociationStateHasBeenSet = true; m_scheduleAssociationState = std::move(value); }
103 
107  inline ClusterAssociatedToSchedule& WithScheduleAssociationState(const ScheduleState& value) { SetScheduleAssociationState(value); return *this;}
108 
112  inline ClusterAssociatedToSchedule& WithScheduleAssociationState(ScheduleState&& value) { SetScheduleAssociationState(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_clusterIdentifier;
117  bool m_clusterIdentifierHasBeenSet;
118 
119  ScheduleState m_scheduleAssociationState;
120  bool m_scheduleAssociationStateHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Redshift
125 } // namespace Aws
Aws::Redshift::Model::ClusterAssociatedToSchedule::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ClusterAssociatedToSchedule.h:46
Aws::Redshift::Model::ClusterAssociatedToSchedule::ClusterAssociatedToSchedule
ClusterAssociatedToSchedule()
Aws::Redshift::Model::ClusterAssociatedToSchedule::WithClusterIdentifier
ClusterAssociatedToSchedule & WithClusterIdentifier(const char *value)
Definition: ClusterAssociatedToSchedule.h:81
Aws::Redshift::Model::ClusterAssociatedToSchedule::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ClusterAssociatedToSchedule.h:56
AWSStreamFwd.h
Aws::Redshift::Model::ClusterAssociatedToSchedule::operator=
ClusterAssociatedToSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterAssociatedToSchedule::WithClusterIdentifier
ClusterAssociatedToSchedule & WithClusterIdentifier(Aws::String &&value)
Definition: ClusterAssociatedToSchedule.h:76
Aws::Redshift::Model::ClusterAssociatedToSchedule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ClusterAssociatedToSchedule
Definition: ClusterAssociatedToSchedule.h:33
Aws::Redshift::Model::ClusterAssociatedToSchedule::WithClusterIdentifier
ClusterAssociatedToSchedule & WithClusterIdentifier(const Aws::String &value)
Definition: ClusterAssociatedToSchedule.h:71
Aws::Redshift::Model::ClusterAssociatedToSchedule::ClusterAssociatedToSchedule
ClusterAssociatedToSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
ScheduleState.h
Aws::Redshift::Model::ClusterAssociatedToSchedule::SetScheduleAssociationState
void SetScheduleAssociationState(const ScheduleState &value)
Definition: ClusterAssociatedToSchedule.h:97
Aws::Redshift::Model::ClusterAssociatedToSchedule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ScheduleState
ScheduleState
Definition: ScheduleState.h:17
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ClusterAssociatedToSchedule::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ClusterAssociatedToSchedule.h:51
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterAssociatedToSchedule::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ClusterAssociatedToSchedule.h:61
Aws::Redshift::Model::ClusterAssociatedToSchedule::WithScheduleAssociationState
ClusterAssociatedToSchedule & WithScheduleAssociationState(ScheduleState &&value)
Definition: ClusterAssociatedToSchedule.h:112
AWSString.h
Aws::Redshift::Model::ClusterAssociatedToSchedule::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ClusterAssociatedToSchedule.h:66
Aws::Redshift::Model::ClusterAssociatedToSchedule::SetScheduleAssociationState
void SetScheduleAssociationState(ScheduleState &&value)
Definition: ClusterAssociatedToSchedule.h:102
Aws::Redshift::Model::ClusterAssociatedToSchedule::ScheduleAssociationStateHasBeenSet
bool ScheduleAssociationStateHasBeenSet() const
Definition: ClusterAssociatedToSchedule.h:92
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterAssociatedToSchedule::GetScheduleAssociationState
const ScheduleState & GetScheduleAssociationState() const
Definition: ClusterAssociatedToSchedule.h:87
Aws::Redshift::Model::ClusterAssociatedToSchedule::WithScheduleAssociationState
ClusterAssociatedToSchedule & WithScheduleAssociationState(const ScheduleState &value)
Definition: ClusterAssociatedToSchedule.h:107