AWS SDK for C++  1.9.160
AWS SDK for C++
SuspendedProcess.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 AutoScaling
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetProcessName() const{ return m_processName; }
50 
54  inline bool ProcessNameHasBeenSet() const { return m_processNameHasBeenSet; }
55 
59  inline void SetProcessName(const Aws::String& value) { m_processNameHasBeenSet = true; m_processName = value; }
60 
64  inline void SetProcessName(Aws::String&& value) { m_processNameHasBeenSet = true; m_processName = std::move(value); }
65 
69  inline void SetProcessName(const char* value) { m_processNameHasBeenSet = true; m_processName.assign(value); }
70 
74  inline SuspendedProcess& WithProcessName(const Aws::String& value) { SetProcessName(value); return *this;}
75 
79  inline SuspendedProcess& WithProcessName(Aws::String&& value) { SetProcessName(std::move(value)); return *this;}
80 
84  inline SuspendedProcess& WithProcessName(const char* value) { SetProcessName(value); return *this;}
85 
86 
90  inline const Aws::String& GetSuspensionReason() const{ return m_suspensionReason; }
91 
95  inline bool SuspensionReasonHasBeenSet() const { return m_suspensionReasonHasBeenSet; }
96 
100  inline void SetSuspensionReason(const Aws::String& value) { m_suspensionReasonHasBeenSet = true; m_suspensionReason = value; }
101 
105  inline void SetSuspensionReason(Aws::String&& value) { m_suspensionReasonHasBeenSet = true; m_suspensionReason = std::move(value); }
106 
110  inline void SetSuspensionReason(const char* value) { m_suspensionReasonHasBeenSet = true; m_suspensionReason.assign(value); }
111 
115  inline SuspendedProcess& WithSuspensionReason(const Aws::String& value) { SetSuspensionReason(value); return *this;}
116 
120  inline SuspendedProcess& WithSuspensionReason(Aws::String&& value) { SetSuspensionReason(std::move(value)); return *this;}
121 
125  inline SuspendedProcess& WithSuspensionReason(const char* value) { SetSuspensionReason(value); return *this;}
126 
127  private:
128 
129  Aws::String m_processName;
130  bool m_processNameHasBeenSet;
131 
132  Aws::String m_suspensionReason;
133  bool m_suspensionReasonHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace AutoScaling
138 } // namespace Aws
Aws::AutoScaling::Model::SuspendedProcess
Definition: SuspendedProcess.h:36
Aws::AutoScaling::Model::SuspendedProcess::SuspensionReasonHasBeenSet
bool SuspensionReasonHasBeenSet() const
Definition: SuspendedProcess.h:95
Aws::AutoScaling::Model::SuspendedProcess::WithProcessName
SuspendedProcess & WithProcessName(const char *value)
Definition: SuspendedProcess.h:84
Aws::AutoScaling::Model::SuspendedProcess::WithSuspensionReason
SuspendedProcess & WithSuspensionReason(const Aws::String &value)
Definition: SuspendedProcess.h:115
Aws::AutoScaling::Model::SuspendedProcess::ProcessNameHasBeenSet
bool ProcessNameHasBeenSet() const
Definition: SuspendedProcess.h:54
Aws::AutoScaling::Model::SuspendedProcess::GetProcessName
const Aws::String & GetProcessName() const
Definition: SuspendedProcess.h:49
Aws::AutoScaling::Model::SuspendedProcess::GetSuspensionReason
const Aws::String & GetSuspensionReason() const
Definition: SuspendedProcess.h:90
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::SuspendedProcess::operator=
SuspendedProcess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::SuspendedProcess::SuspendedProcess
SuspendedProcess()
Aws::AutoScaling::Model::SuspendedProcess::SetSuspensionReason
void SetSuspensionReason(const char *value)
Definition: SuspendedProcess.h:110
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::SuspendedProcess::WithProcessName
SuspendedProcess & WithProcessName(const Aws::String &value)
Definition: SuspendedProcess.h:74
Aws::AutoScaling::Model::SuspendedProcess::SetSuspensionReason
void SetSuspensionReason(Aws::String &&value)
Definition: SuspendedProcess.h:105
AWSString.h
Aws::AutoScaling::Model::SuspendedProcess::SetSuspensionReason
void SetSuspensionReason(const Aws::String &value)
Definition: SuspendedProcess.h:100
Aws::AutoScaling::Model::SuspendedProcess::SuspendedProcess
SuspendedProcess(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::SuspendedProcess::SetProcessName
void SetProcessName(const Aws::String &value)
Definition: SuspendedProcess.h:59
Aws::AutoScaling::Model::SuspendedProcess::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::SuspendedProcess::WithSuspensionReason
SuspendedProcess & WithSuspensionReason(Aws::String &&value)
Definition: SuspendedProcess.h:120
Aws::AutoScaling::Model::SuspendedProcess::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::SuspendedProcess::SetProcessName
void SetProcessName(Aws::String &&value)
Definition: SuspendedProcess.h:64
Aws::AutoScaling::Model::SuspendedProcess::WithSuspensionReason
SuspendedProcess & WithSuspensionReason(const char *value)
Definition: SuspendedProcess.h:125
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::SuspendedProcess::WithProcessName
SuspendedProcess & WithProcessName(Aws::String &&value)
Definition: SuspendedProcess.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::SuspendedProcess::SetProcessName
void SetProcessName(const char *value)
Definition: SuspendedProcess.h:69
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