AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResizeInfo.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
28 public:
29 AWS_REDSHIFT_API ResizeInfo() = default;
30 AWS_REDSHIFT_API ResizeInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_REDSHIFT_API ResizeInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetResizeType() const { return m_resizeType; }
41 inline bool ResizeTypeHasBeenSet() const { return m_resizeTypeHasBeenSet; }
42 template <typename ResizeTypeT = Aws::String>
43 void SetResizeType(ResizeTypeT&& value) {
44 m_resizeTypeHasBeenSet = true;
45 m_resizeType = std::forward<ResizeTypeT>(value);
46 }
47 template <typename ResizeTypeT = Aws::String>
48 ResizeInfo& WithResizeType(ResizeTypeT&& value) {
49 SetResizeType(std::forward<ResizeTypeT>(value));
50 return *this;
51 }
53
55
58 inline bool GetAllowCancelResize() const { return m_allowCancelResize; }
59 inline bool AllowCancelResizeHasBeenSet() const { return m_allowCancelResizeHasBeenSet; }
60 inline void SetAllowCancelResize(bool value) {
61 m_allowCancelResizeHasBeenSet = true;
62 m_allowCancelResize = value;
63 }
64 inline ResizeInfo& WithAllowCancelResize(bool value) {
66 return *this;
67 }
69 private:
70 Aws::String m_resizeType;
71
72 bool m_allowCancelResize{false};
73 bool m_resizeTypeHasBeenSet = false;
74 bool m_allowCancelResizeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Redshift
79} // namespace Aws
ResizeInfo & WithResizeType(ResizeTypeT &&value)
Definition ResizeInfo.h:48
bool AllowCancelResizeHasBeenSet() const
Definition ResizeInfo.h:59
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API ResizeInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetResizeType() const
Definition ResizeInfo.h:40
ResizeInfo & WithAllowCancelResize(bool value)
Definition ResizeInfo.h:64
AWS_REDSHIFT_API ResizeInfo()=default
void SetAllowCancelResize(bool value)
Definition ResizeInfo.h:60
void SetResizeType(ResizeTypeT &&value)
Definition ResizeInfo.h:43
AWS_REDSHIFT_API ResizeInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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