AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FastLaunchConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/model/FastLaunchSnapshotConfiguration.h>
9#include <aws/imagebuilder/model/FastLaunchLaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API FastLaunchConfiguration();
38 AWS_IMAGEBUILDER_API FastLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline bool GetEnabled() const{ return m_enabled; }
50 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
52 inline FastLaunchConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
54
56
61 inline const FastLaunchSnapshotConfiguration& GetSnapshotConfiguration() const{ return m_snapshotConfiguration; }
62 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
63 inline void SetSnapshotConfiguration(const FastLaunchSnapshotConfiguration& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = value; }
64 inline void SetSnapshotConfiguration(FastLaunchSnapshotConfiguration&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::move(value); }
68
70
74 inline int GetMaxParallelLaunches() const{ return m_maxParallelLaunches; }
75 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
76 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
79
81
85 inline const FastLaunchLaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
86 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
87 inline void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
88 inline void SetLaunchTemplate(FastLaunchLaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
92
94
97 inline const Aws::String& GetAccountId() const{ return m_accountId; }
98 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
99 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
100 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
101 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
102 inline FastLaunchConfiguration& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
103 inline FastLaunchConfiguration& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
104 inline FastLaunchConfiguration& WithAccountId(const char* value) { SetAccountId(value); return *this;}
106 private:
107
108 bool m_enabled;
109 bool m_enabledHasBeenSet = false;
110
111 FastLaunchSnapshotConfiguration m_snapshotConfiguration;
112 bool m_snapshotConfigurationHasBeenSet = false;
113
114 int m_maxParallelLaunches;
115 bool m_maxParallelLaunchesHasBeenSet = false;
116
118 bool m_launchTemplateHasBeenSet = false;
119
120 Aws::String m_accountId;
121 bool m_accountIdHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace imagebuilder
126} // namespace Aws
void SetSnapshotConfiguration(const FastLaunchSnapshotConfiguration &value)
FastLaunchConfiguration & WithLaunchTemplate(const FastLaunchLaunchTemplateSpecification &value)
AWS_IMAGEBUILDER_API FastLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue)
FastLaunchConfiguration & WithEnabled(bool value)
const FastLaunchSnapshotConfiguration & GetSnapshotConfiguration() const
FastLaunchConfiguration & WithLaunchTemplate(FastLaunchLaunchTemplateSpecification &&value)
FastLaunchConfiguration & WithSnapshotConfiguration(FastLaunchSnapshotConfiguration &&value)
FastLaunchConfiguration & WithAccountId(Aws::String &&value)
void SetSnapshotConfiguration(FastLaunchSnapshotConfiguration &&value)
FastLaunchConfiguration & WithSnapshotConfiguration(const FastLaunchSnapshotConfiguration &value)
void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecification &value)
const FastLaunchLaunchTemplateSpecification & GetLaunchTemplate() const
FastLaunchConfiguration & WithMaxParallelLaunches(int value)
FastLaunchConfiguration & WithAccountId(const char *value)
AWS_IMAGEBUILDER_API FastLaunchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchTemplate(FastLaunchLaunchTemplateSpecification &&value)
FastLaunchConfiguration & WithAccountId(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue