AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfiguration>
64 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value); }
65 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfiguration>
66 FastLaunchConfiguration& WithSnapshotConfiguration(SnapshotConfigurationT&& value) { SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value)); return *this;}
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 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecification>
88 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
89 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecification>
90 FastLaunchConfiguration& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
92
94
97 inline const Aws::String& GetAccountId() const { return m_accountId; }
98 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
99 template<typename AccountIdT = Aws::String>
100 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
101 template<typename AccountIdT = Aws::String>
102 FastLaunchConfiguration& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
104 private:
105
106 bool m_enabled{false};
107 bool m_enabledHasBeenSet = false;
108
109 FastLaunchSnapshotConfiguration m_snapshotConfiguration;
110 bool m_snapshotConfigurationHasBeenSet = false;
111
112 int m_maxParallelLaunches{0};
113 bool m_maxParallelLaunchesHasBeenSet = false;
114
115 FastLaunchLaunchTemplateSpecification m_launchTemplate;
116 bool m_launchTemplateHasBeenSet = false;
117
118 Aws::String m_accountId;
119 bool m_accountIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace imagebuilder
124} // namespace Aws
FastLaunchConfiguration & WithSnapshotConfiguration(SnapshotConfigurationT &&value)
AWS_IMAGEBUILDER_API FastLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue)
FastLaunchConfiguration & WithEnabled(bool value)
const FastLaunchSnapshotConfiguration & GetSnapshotConfiguration() const
AWS_IMAGEBUILDER_API FastLaunchConfiguration()=default
void SetSnapshotConfiguration(SnapshotConfigurationT &&value)
const FastLaunchLaunchTemplateSpecification & GetLaunchTemplate() const
FastLaunchConfiguration & WithMaxParallelLaunches(int value)
AWS_IMAGEBUILDER_API FastLaunchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FastLaunchConfiguration & WithLaunchTemplate(LaunchTemplateT &&value)
FastLaunchConfiguration & WithAccountId(AccountIdT &&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