AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
ClusterAssociatedToSchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10#include <aws/redshift/model/ScheduleState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Redshift {
21namespace Model {
22
29 public:
30 AWS_REDSHIFT_API ClusterAssociatedToSchedule() = default;
31 AWS_REDSHIFT_API ClusterAssociatedToSchedule(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
42 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
43 template <typename ClusterIdentifierT = Aws::String>
44 void SetClusterIdentifier(ClusterIdentifierT&& value) {
45 m_clusterIdentifierHasBeenSet = true;
46 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
47 }
48 template <typename ClusterIdentifierT = Aws::String>
50 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline ScheduleState GetScheduleAssociationState() const { return m_scheduleAssociationState; }
60 inline bool ScheduleAssociationStateHasBeenSet() const { return m_scheduleAssociationStateHasBeenSet; }
62 m_scheduleAssociationStateHasBeenSet = true;
63 m_scheduleAssociationState = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_clusterIdentifier;
72
73 ScheduleState m_scheduleAssociationState{ScheduleState::NOT_SET};
74 bool m_clusterIdentifierHasBeenSet = false;
75 bool m_scheduleAssociationStateHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
ClusterAssociatedToSchedule & WithScheduleAssociationState(ScheduleState value)
AWS_REDSHIFT_API ClusterAssociatedToSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API ClusterAssociatedToSchedule()=default
AWS_REDSHIFT_API ClusterAssociatedToSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClusterAssociatedToSchedule & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream