AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IMAGEBUILDER_API LaunchTemplateConfiguration() = default;
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
46 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
47 template<typename LaunchTemplateIdT = Aws::String>
48 void SetLaunchTemplateId(LaunchTemplateIdT&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::forward<LaunchTemplateIdT>(value); }
49 template<typename LaunchTemplateIdT = Aws::String>
50 LaunchTemplateConfiguration& WithLaunchTemplateId(LaunchTemplateIdT&& value) { SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
61 template<typename AccountIdT = Aws::String>
62 LaunchTemplateConfiguration& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
64
66
70 inline bool GetSetDefaultVersion() const { return m_setDefaultVersion; }
71 inline bool SetDefaultVersionHasBeenSet() const { return m_setDefaultVersionHasBeenSet; }
72 inline void SetSetDefaultVersion(bool value) { m_setDefaultVersionHasBeenSet = true; m_setDefaultVersion = value; }
73 inline LaunchTemplateConfiguration& WithSetDefaultVersion(bool value) { SetSetDefaultVersion(value); return *this;}
75 private:
76
77 Aws::String m_launchTemplateId;
78 bool m_launchTemplateIdHasBeenSet = false;
79
80 Aws::String m_accountId;
81 bool m_accountIdHasBeenSet = false;
82
83 bool m_setDefaultVersion{false};
84 bool m_setDefaultVersionHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace imagebuilder
89} // 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