AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LaunchTemplateConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace imagebuilder {
20namespace Model {
21
29 public:
30 AWS_IMAGEBUILDER_API LaunchTemplateConfiguration() = default;
33 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
40 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
41 template <typename LaunchTemplateIdT = Aws::String>
42 void SetLaunchTemplateId(LaunchTemplateIdT&& value) {
43 m_launchTemplateIdHasBeenSet = true;
44 m_launchTemplateId = std::forward<LaunchTemplateIdT>(value);
45 }
46 template <typename LaunchTemplateIdT = Aws::String>
48 SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAccountId() const { return m_accountId; }
58 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
59 template <typename AccountIdT = Aws::String>
60 void SetAccountId(AccountIdT&& value) {
61 m_accountIdHasBeenSet = true;
62 m_accountId = std::forward<AccountIdT>(value);
63 }
64 template <typename AccountIdT = Aws::String>
66 SetAccountId(std::forward<AccountIdT>(value));
67 return *this;
68 }
70
72
76 inline bool GetSetDefaultVersion() const { return m_setDefaultVersion; }
77 inline bool SetDefaultVersionHasBeenSet() const { return m_setDefaultVersionHasBeenSet; }
78 inline void SetSetDefaultVersion(bool value) {
79 m_setDefaultVersionHasBeenSet = true;
80 m_setDefaultVersion = value;
81 }
84 return *this;
85 }
87 private:
88 Aws::String m_launchTemplateId;
89
90 Aws::String m_accountId;
91
92 bool m_setDefaultVersion{false};
93 bool m_launchTemplateIdHasBeenSet = false;
94 bool m_accountIdHasBeenSet = false;
95 bool m_setDefaultVersionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace imagebuilder
100} // namespace Aws
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchTemplateConfiguration & WithSetDefaultVersion(bool value)
LaunchTemplateConfiguration & WithAccountId(AccountIdT &&value)
AWS_IMAGEBUILDER_API LaunchTemplateConfiguration()=default
AWS_IMAGEBUILDER_API LaunchTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
LaunchTemplateConfiguration & WithLaunchTemplateId(LaunchTemplateIdT &&value)
AWS_IMAGEBUILDER_API LaunchTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue