AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LaunchedInstance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/FirstBoot.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
29 public:
30 AWS_MGN_API LaunchedInstance() = default;
34
36
39 inline const Aws::String& GetEc2InstanceID() const { return m_ec2InstanceID; }
40 inline bool Ec2InstanceIDHasBeenSet() const { return m_ec2InstanceIDHasBeenSet; }
41 template <typename Ec2InstanceIDT = Aws::String>
42 void SetEc2InstanceID(Ec2InstanceIDT&& value) {
43 m_ec2InstanceIDHasBeenSet = true;
44 m_ec2InstanceID = std::forward<Ec2InstanceIDT>(value);
45 }
46 template <typename Ec2InstanceIDT = Aws::String>
47 LaunchedInstance& WithEc2InstanceID(Ec2InstanceIDT&& value) {
48 SetEc2InstanceID(std::forward<Ec2InstanceIDT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetJobID() const { return m_jobID; }
58 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
59 template <typename JobIDT = Aws::String>
60 void SetJobID(JobIDT&& value) {
61 m_jobIDHasBeenSet = true;
62 m_jobID = std::forward<JobIDT>(value);
63 }
64 template <typename JobIDT = Aws::String>
65 LaunchedInstance& WithJobID(JobIDT&& value) {
66 SetJobID(std::forward<JobIDT>(value));
67 return *this;
68 }
70
72
75 inline FirstBoot GetFirstBoot() const { return m_firstBoot; }
76 inline bool FirstBootHasBeenSet() const { return m_firstBootHasBeenSet; }
77 inline void SetFirstBoot(FirstBoot value) {
78 m_firstBootHasBeenSet = true;
79 m_firstBoot = value;
80 }
82 SetFirstBoot(value);
83 return *this;
84 }
86 private:
87 Aws::String m_ec2InstanceID;
88
89 Aws::String m_jobID;
90
91 FirstBoot m_firstBoot{FirstBoot::NOT_SET};
92 bool m_ec2InstanceIDHasBeenSet = false;
93 bool m_jobIDHasBeenSet = false;
94 bool m_firstBootHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace mgn
99} // namespace Aws
AWS_MGN_API LaunchedInstance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobID() const
void SetEc2InstanceID(Ec2InstanceIDT &&value)
LaunchedInstance & WithJobID(JobIDT &&value)
AWS_MGN_API LaunchedInstance()=default
const Aws::String & GetEc2InstanceID() const
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue