AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LaunchedInstance.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/FirstBoot.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mgn
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MGN_API LaunchedInstance() = default;
39
40
42
45 inline const Aws::String& GetEc2InstanceID() const { return m_ec2InstanceID; }
46 inline bool Ec2InstanceIDHasBeenSet() const { return m_ec2InstanceIDHasBeenSet; }
47 template<typename Ec2InstanceIDT = Aws::String>
48 void SetEc2InstanceID(Ec2InstanceIDT&& value) { m_ec2InstanceIDHasBeenSet = true; m_ec2InstanceID = std::forward<Ec2InstanceIDT>(value); }
49 template<typename Ec2InstanceIDT = Aws::String>
50 LaunchedInstance& WithEc2InstanceID(Ec2InstanceIDT&& value) { SetEc2InstanceID(std::forward<Ec2InstanceIDT>(value)); return *this;}
52
54
57 inline FirstBoot GetFirstBoot() const { return m_firstBoot; }
58 inline bool FirstBootHasBeenSet() const { return m_firstBootHasBeenSet; }
59 inline void SetFirstBoot(FirstBoot value) { m_firstBootHasBeenSet = true; m_firstBoot = value; }
60 inline LaunchedInstance& WithFirstBoot(FirstBoot value) { SetFirstBoot(value); return *this;}
62
64
67 inline const Aws::String& GetJobID() const { return m_jobID; }
68 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
69 template<typename JobIDT = Aws::String>
70 void SetJobID(JobIDT&& value) { m_jobIDHasBeenSet = true; m_jobID = std::forward<JobIDT>(value); }
71 template<typename JobIDT = Aws::String>
72 LaunchedInstance& WithJobID(JobIDT&& value) { SetJobID(std::forward<JobIDT>(value)); return *this;}
74 private:
75
76 Aws::String m_ec2InstanceID;
77 bool m_ec2InstanceIDHasBeenSet = false;
78
79 FirstBoot m_firstBoot{FirstBoot::NOT_SET};
80 bool m_firstBootHasBeenSet = false;
81
82 Aws::String m_jobID;
83 bool m_jobIDHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace mgn
88} // 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