AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendedAction.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/RecommendedActionType.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
34 {
35 public:
36 AWS_REDSHIFT_API RecommendedAction();
37 AWS_REDSHIFT_API RecommendedAction(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API RecommendedAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetText() const{ return m_text; }
49 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
50 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
51 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
52 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
53 inline RecommendedAction& WithText(const Aws::String& value) { SetText(value); return *this;}
54 inline RecommendedAction& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
55 inline RecommendedAction& WithText(const char* value) { SetText(value); return *this;}
57
59
63 inline const Aws::String& GetDatabase() const{ return m_database; }
64 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
65 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
66 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
67 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
68 inline RecommendedAction& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
69 inline RecommendedAction& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
70 inline RecommendedAction& WithDatabase(const char* value) { SetDatabase(value); return *this;}
72
74
77 inline const Aws::String& GetCommand() const{ return m_command; }
78 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
79 inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
80 inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
81 inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
82 inline RecommendedAction& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
83 inline RecommendedAction& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
84 inline RecommendedAction& WithCommand(const char* value) { SetCommand(value); return *this;}
86
88
91 inline const RecommendedActionType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const RecommendedActionType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(RecommendedActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline RecommendedAction& WithType(const RecommendedActionType& value) { SetType(value); return *this;}
96 inline RecommendedAction& WithType(RecommendedActionType&& value) { SetType(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_text;
101 bool m_textHasBeenSet = false;
102
103 Aws::String m_database;
104 bool m_databaseHasBeenSet = false;
105
106 Aws::String m_command;
107 bool m_commandHasBeenSet = false;
108
110 bool m_typeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Redshift
115} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream