AWS SDK for C++  1.9.130
AWS SDK for C++
ResizeInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetResizeType() const{ return m_resizeType; }
46 
50  inline bool ResizeTypeHasBeenSet() const { return m_resizeTypeHasBeenSet; }
51 
55  inline void SetResizeType(const Aws::String& value) { m_resizeTypeHasBeenSet = true; m_resizeType = value; }
56 
60  inline void SetResizeType(Aws::String&& value) { m_resizeTypeHasBeenSet = true; m_resizeType = std::move(value); }
61 
65  inline void SetResizeType(const char* value) { m_resizeTypeHasBeenSet = true; m_resizeType.assign(value); }
66 
70  inline ResizeInfo& WithResizeType(const Aws::String& value) { SetResizeType(value); return *this;}
71 
75  inline ResizeInfo& WithResizeType(Aws::String&& value) { SetResizeType(std::move(value)); return *this;}
76 
80  inline ResizeInfo& WithResizeType(const char* value) { SetResizeType(value); return *this;}
81 
82 
86  inline bool GetAllowCancelResize() const{ return m_allowCancelResize; }
87 
91  inline bool AllowCancelResizeHasBeenSet() const { return m_allowCancelResizeHasBeenSet; }
92 
96  inline void SetAllowCancelResize(bool value) { m_allowCancelResizeHasBeenSet = true; m_allowCancelResize = value; }
97 
101  inline ResizeInfo& WithAllowCancelResize(bool value) { SetAllowCancelResize(value); return *this;}
102 
103  private:
104 
105  Aws::String m_resizeType;
106  bool m_resizeTypeHasBeenSet;
107 
108  bool m_allowCancelResize;
109  bool m_allowCancelResizeHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace Redshift
114 } // namespace Aws
Aws::Redshift::Model::ResizeInfo::WithResizeType
ResizeInfo & WithResizeType(const Aws::String &value)
Definition: ResizeInfo.h:70
Aws::Redshift::Model::ResizeInfo::GetResizeType
const Aws::String & GetResizeType() const
Definition: ResizeInfo.h:45
Aws::Redshift::Model::ResizeInfo
Definition: ResizeInfo.h:32
Aws::Redshift::Model::ResizeInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::Redshift::Model::ResizeInfo::operator=
ResizeInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ResizeInfo::WithAllowCancelResize
ResizeInfo & WithAllowCancelResize(bool value)
Definition: ResizeInfo.h:101
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ResizeInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ResizeInfo::SetResizeType
void SetResizeType(const Aws::String &value)
Definition: ResizeInfo.h:55
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ResizeInfo::SetResizeType
void SetResizeType(Aws::String &&value)
Definition: ResizeInfo.h:60
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::ResizeInfo::ResizeTypeHasBeenSet
bool ResizeTypeHasBeenSet() const
Definition: ResizeInfo.h:50
Aws::Redshift::Model::ResizeInfo::WithResizeType
ResizeInfo & WithResizeType(Aws::String &&value)
Definition: ResizeInfo.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ResizeInfo::SetAllowCancelResize
void SetAllowCancelResize(bool value)
Definition: ResizeInfo.h:96
Redshift_EXPORTS.h
Aws::Redshift::Model::ResizeInfo::AllowCancelResizeHasBeenSet
bool AllowCancelResizeHasBeenSet() const
Definition: ResizeInfo.h:91
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::ResizeInfo::ResizeInfo
ResizeInfo()
Aws::Redshift::Model::ResizeInfo::SetResizeType
void SetResizeType(const char *value)
Definition: ResizeInfo.h:65
Aws::Redshift::Model::ResizeInfo::WithResizeType
ResizeInfo & WithResizeType(const char *value)
Definition: ResizeInfo.h:80
Aws::Redshift::Model::ResizeInfo::GetAllowCancelResize
bool GetAllowCancelResize() const
Definition: ResizeInfo.h:86
Aws::Redshift::Model::ResizeInfo::ResizeInfo
ResizeInfo(const Aws::Utils::Xml::XmlNode &xmlNode)