AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
48 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
49 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
51 inline LaunchTemplateConfiguration& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
52 inline LaunchTemplateConfiguration& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
54
56
59 inline const Aws::String& GetAccountId() const{ return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
62 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
63 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 inline LaunchTemplateConfiguration& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
65 inline LaunchTemplateConfiguration& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
66 inline LaunchTemplateConfiguration& WithAccountId(const char* value) { SetAccountId(value); return *this;}
68
70
74 inline bool GetSetDefaultVersion() const{ return m_setDefaultVersion; }
75 inline bool SetDefaultVersionHasBeenSet() const { return m_setDefaultVersionHasBeenSet; }
76 inline void SetSetDefaultVersion(bool value) { m_setDefaultVersionHasBeenSet = true; m_setDefaultVersion = value; }
77 inline LaunchTemplateConfiguration& WithSetDefaultVersion(bool value) { SetSetDefaultVersion(value); return *this;}
79 private:
80
81 Aws::String m_launchTemplateId;
82 bool m_launchTemplateIdHasBeenSet = false;
83
84 Aws::String m_accountId;
85 bool m_accountIdHasBeenSet = false;
86
87 bool m_setDefaultVersion;
88 bool m_setDefaultVersionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace imagebuilder
93} // namespace Aws
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchTemplateConfiguration & WithLaunchTemplateId(const Aws::String &value)
LaunchTemplateConfiguration & WithSetDefaultVersion(bool value)
LaunchTemplateConfiguration & WithAccountId(Aws::String &&value)
LaunchTemplateConfiguration & WithLaunchTemplateId(const char *value)
LaunchTemplateConfiguration & WithLaunchTemplateId(Aws::String &&value)
AWS_IMAGEBUILDER_API LaunchTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
LaunchTemplateConfiguration & WithAccountId(const Aws::String &value)
AWS_IMAGEBUILDER_API LaunchTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LaunchTemplateConfiguration & WithAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue