AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
LaunchedInstance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/FirstBoot.h>
11#include <aws/mgn/model/LastKnownCheck.h>
12#include <aws/mgn/model/LastKnownCheckStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mgn {
24namespace Model {
25
32 public:
33 AWS_MGN_API LaunchedInstance() = default;
37
39
42 inline const Aws::String& GetEc2InstanceID() const { return m_ec2InstanceID; }
43 inline bool Ec2InstanceIDHasBeenSet() const { return m_ec2InstanceIDHasBeenSet; }
44 template <typename Ec2InstanceIDT = Aws::String>
45 void SetEc2InstanceID(Ec2InstanceIDT&& value) {
46 m_ec2InstanceIDHasBeenSet = true;
47 m_ec2InstanceID = std::forward<Ec2InstanceIDT>(value);
48 }
49 template <typename Ec2InstanceIDT = Aws::String>
50 LaunchedInstance& WithEc2InstanceID(Ec2InstanceIDT&& value) {
51 SetEc2InstanceID(std::forward<Ec2InstanceIDT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetJobID() const { return m_jobID; }
61 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
62 template <typename JobIDT = Aws::String>
63 void SetJobID(JobIDT&& value) {
64 m_jobIDHasBeenSet = true;
65 m_jobID = std::forward<JobIDT>(value);
66 }
67 template <typename JobIDT = Aws::String>
68 LaunchedInstance& WithJobID(JobIDT&& value) {
69 SetJobID(std::forward<JobIDT>(value));
70 return *this;
71 }
73
75
78 inline FirstBoot GetFirstBoot() const { return m_firstBoot; }
79 inline bool FirstBootHasBeenSet() const { return m_firstBootHasBeenSet; }
80 inline void SetFirstBoot(FirstBoot value) {
81 m_firstBootHasBeenSet = true;
82 m_firstBoot = value;
83 }
85 SetFirstBoot(value);
86 return *this;
87 }
89
91
94 inline const Aws::Vector<LastKnownCheck>& GetLastKnownChecks() const { return m_lastKnownChecks; }
95 inline bool LastKnownChecksHasBeenSet() const { return m_lastKnownChecksHasBeenSet; }
96 template <typename LastKnownChecksT = Aws::Vector<LastKnownCheck>>
97 void SetLastKnownChecks(LastKnownChecksT&& value) {
98 m_lastKnownChecksHasBeenSet = true;
99 m_lastKnownChecks = std::forward<LastKnownChecksT>(value);
100 }
101 template <typename LastKnownChecksT = Aws::Vector<LastKnownCheck>>
102 LaunchedInstance& WithLastKnownChecks(LastKnownChecksT&& value) {
103 SetLastKnownChecks(std::forward<LastKnownChecksT>(value));
104 return *this;
105 }
106 template <typename LastKnownChecksT = LastKnownCheck>
107 LaunchedInstance& AddLastKnownChecks(LastKnownChecksT&& value) {
108 m_lastKnownChecksHasBeenSet = true;
109 m_lastKnownChecks.emplace_back(std::forward<LastKnownChecksT>(value));
110 return *this;
111 }
113
115
118 inline LastKnownCheckStatus GetLastKnownFsxChecksStatus() const { return m_lastKnownFsxChecksStatus; }
119 inline bool LastKnownFsxChecksStatusHasBeenSet() const { return m_lastKnownFsxChecksStatusHasBeenSet; }
121 m_lastKnownFsxChecksStatusHasBeenSet = true;
122 m_lastKnownFsxChecksStatus = value;
123 }
126 return *this;
127 }
129 private:
130 Aws::String m_ec2InstanceID;
131
132 Aws::String m_jobID;
133
134 FirstBoot m_firstBoot{FirstBoot::NOT_SET};
135
136 Aws::Vector<LastKnownCheck> m_lastKnownChecks;
137
138 LastKnownCheckStatus m_lastKnownFsxChecksStatus{LastKnownCheckStatus::NOT_SET};
139 bool m_ec2InstanceIDHasBeenSet = false;
140 bool m_jobIDHasBeenSet = false;
141 bool m_firstBootHasBeenSet = false;
142 bool m_lastKnownChecksHasBeenSet = false;
143 bool m_lastKnownFsxChecksStatusHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace mgn
148} // namespace Aws
AWS_MGN_API LaunchedInstance(Aws::Utils::Json::JsonView jsonValue)
LaunchedInstance & WithLastKnownChecks(LastKnownChecksT &&value)
const Aws::String & GetJobID() const
const Aws::Vector< LastKnownCheck > & GetLastKnownChecks() const
LaunchedInstance & AddLastKnownChecks(LastKnownChecksT &&value)
void SetEc2InstanceID(Ec2InstanceIDT &&value)
LaunchedInstance & WithJobID(JobIDT &&value)
LaunchedInstance & WithLastKnownFsxChecksStatus(LastKnownCheckStatus value)
AWS_MGN_API LaunchedInstance()=default
LastKnownCheckStatus GetLastKnownFsxChecksStatus() const
const Aws::String & GetEc2InstanceID() const
void SetLastKnownFsxChecksStatus(LastKnownCheckStatus value)
LaunchedInstance & WithFirstBoot(FirstBoot value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchedInstance & WithEc2InstanceID(Ec2InstanceIDT &&value)
AWS_MGN_API LaunchedInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastKnownChecks(LastKnownChecksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue