AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_MGN_API ChangeServerLifeCycleStateRequest() = default;
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 template<typename AccountIDT = Aws::String>
43 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
44 template<typename AccountIDT = Aws::String>
45 ChangeServerLifeCycleStateRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
47
49
52 inline const ChangeServerLifeCycleStateSourceServerLifecycle& GetLifeCycle() const { return m_lifeCycle; }
53 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
54 template<typename LifeCycleT = ChangeServerLifeCycleStateSourceServerLifecycle>
55 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
56 template<typename LifeCycleT = ChangeServerLifeCycleStateSourceServerLifecycle>
57 ChangeServerLifeCycleStateRequest& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
59
61
65 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
66 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
67 template<typename SourceServerIDT = Aws::String>
68 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
69 template<typename SourceServerIDT = Aws::String>
70 ChangeServerLifeCycleStateRequest& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
72 private:
73
74 Aws::String m_accountID;
75 bool m_accountIDHasBeenSet = false;
76
78 bool m_lifeCycleHasBeenSet = false;
79
80 Aws::String m_sourceServerID;
81 bool m_sourceServerIDHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace mgn
86} // namespace Aws
ChangeServerLifeCycleStateRequest & WithSourceServerID(SourceServerIDT &&value)
const ChangeServerLifeCycleStateSourceServerLifecycle & GetLifeCycle() const
ChangeServerLifeCycleStateRequest & WithAccountID(AccountIDT &&value)
ChangeServerLifeCycleStateRequest & WithLifeCycle(LifeCycleT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String