AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChangeServerLifeCycleStateRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/ChangeServerLifeCycleStateSourceServerLifecycle.h>
11#include <utility>
12
13namespace Aws
14{
15namespace mgn
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ChangeServerLifeCycleState"; }
32
33 AWS_MGN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountID() const{ return m_accountID; }
41 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
42 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
43 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
44 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
45 inline ChangeServerLifeCycleStateRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
46 inline ChangeServerLifeCycleStateRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
47 inline ChangeServerLifeCycleStateRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
49
51
54 inline const ChangeServerLifeCycleStateSourceServerLifecycle& GetLifeCycle() const{ return m_lifeCycle; }
55 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
56 inline void SetLifeCycle(const ChangeServerLifeCycleStateSourceServerLifecycle& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = value; }
57 inline void SetLifeCycle(ChangeServerLifeCycleStateSourceServerLifecycle&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::move(value); }
61
63
67 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
68 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
69 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
70 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
71 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
73 inline ChangeServerLifeCycleStateRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
74 inline ChangeServerLifeCycleStateRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
76 private:
77
78 Aws::String m_accountID;
79 bool m_accountIDHasBeenSet = false;
80
82 bool m_lifeCycleHasBeenSet = false;
83
84 Aws::String m_sourceServerID;
85 bool m_sourceServerIDHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace mgn
90} // namespace Aws
ChangeServerLifeCycleStateRequest & WithLifeCycle(ChangeServerLifeCycleStateSourceServerLifecycle &&value)
ChangeServerLifeCycleStateRequest & WithAccountID(const char *value)
ChangeServerLifeCycleStateRequest & WithLifeCycle(const ChangeServerLifeCycleStateSourceServerLifecycle &value)
void SetLifeCycle(ChangeServerLifeCycleStateSourceServerLifecycle &&value)
ChangeServerLifeCycleStateRequest & WithAccountID(const Aws::String &value)
const ChangeServerLifeCycleStateSourceServerLifecycle & GetLifeCycle() const
ChangeServerLifeCycleStateRequest & WithAccountID(Aws::String &&value)
ChangeServerLifeCycleStateRequest & WithSourceServerID(const char *value)
ChangeServerLifeCycleStateRequest & WithSourceServerID(Aws::String &&value)
ChangeServerLifeCycleStateRequest & WithSourceServerID(const Aws::String &value)
AWS_MGN_API Aws::String SerializePayload() const override
void SetLifeCycle(const ChangeServerLifeCycleStateSourceServerLifecycle &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String