AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2LaunchTemplateDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsEc2LaunchTemplateDataDetails.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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsEc2LaunchTemplateDetails();
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
47 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
48 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
49 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
50 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
52 inline AwsEc2LaunchTemplateDetails& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
53 inline AwsEc2LaunchTemplateDetails& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline AwsEc2LaunchTemplateDetails& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline AwsEc2LaunchTemplateDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline AwsEc2LaunchTemplateDetails& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const AwsEc2LaunchTemplateDataDetails& GetLaunchTemplateData() const{ return m_launchTemplateData; }
75 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
76 inline void SetLaunchTemplateData(const AwsEc2LaunchTemplateDataDetails& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
77 inline void SetLaunchTemplateData(AwsEc2LaunchTemplateDataDetails&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
81
83
86 inline long long GetDefaultVersionNumber() const{ return m_defaultVersionNumber; }
87 inline bool DefaultVersionNumberHasBeenSet() const { return m_defaultVersionNumberHasBeenSet; }
88 inline void SetDefaultVersionNumber(long long value) { m_defaultVersionNumberHasBeenSet = true; m_defaultVersionNumber = value; }
89 inline AwsEc2LaunchTemplateDetails& WithDefaultVersionNumber(long long value) { SetDefaultVersionNumber(value); return *this;}
91
93
96 inline long long GetLatestVersionNumber() const{ return m_latestVersionNumber; }
97 inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
98 inline void SetLatestVersionNumber(long long value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
99 inline AwsEc2LaunchTemplateDetails& WithLatestVersionNumber(long long value) { SetLatestVersionNumber(value); return *this;}
101 private:
102
103 Aws::String m_launchTemplateName;
104 bool m_launchTemplateNameHasBeenSet = false;
105
106 Aws::String m_id;
107 bool m_idHasBeenSet = false;
108
109 AwsEc2LaunchTemplateDataDetails m_launchTemplateData;
110 bool m_launchTemplateDataHasBeenSet = false;
111
112 long long m_defaultVersionNumber;
113 bool m_defaultVersionNumberHasBeenSet = false;
114
115 long long m_latestVersionNumber;
116 bool m_latestVersionNumberHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SecurityHub
121} // namespace Aws
AwsEc2LaunchTemplateDetails & WithId(const char *value)
AwsEc2LaunchTemplateDetails & WithLaunchTemplateName(const Aws::String &value)
void SetLaunchTemplateData(const AwsEc2LaunchTemplateDataDetails &value)
void SetLaunchTemplateData(AwsEc2LaunchTemplateDataDetails &&value)
AWS_SECURITYHUB_API AwsEc2LaunchTemplateDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2LaunchTemplateDetails & WithLaunchTemplateName(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2LaunchTemplateDetails & WithLaunchTemplateName(const char *value)
AwsEc2LaunchTemplateDetails & WithId(Aws::String &&value)
AwsEc2LaunchTemplateDetails & WithId(const Aws::String &value)
AwsEc2LaunchTemplateDetails & WithDefaultVersionNumber(long long value)
const AwsEc2LaunchTemplateDataDetails & GetLaunchTemplateData() const
AWS_SECURITYHUB_API AwsEc2LaunchTemplateDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2LaunchTemplateDetails & WithLaunchTemplateData(AwsEc2LaunchTemplateDataDetails &&value)
AwsEc2LaunchTemplateDetails & WithLaunchTemplateData(const AwsEc2LaunchTemplateDataDetails &value)
AwsEc2LaunchTemplateDetails & WithLatestVersionNumber(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue