AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CustomLaunchTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pcs/PCS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PCS {
20namespace Model {
21
29 public:
30 AWS_PCS_API CustomLaunchTemplate() = default;
34
36
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetVersion() const { return m_version; }
61 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
62 template <typename VersionT = Aws::String>
63 void SetVersion(VersionT&& value) {
64 m_versionHasBeenSet = true;
65 m_version = std::forward<VersionT>(value);
66 }
67 template <typename VersionT = Aws::String>
68 CustomLaunchTemplate& WithVersion(VersionT&& value) {
69 SetVersion(std::forward<VersionT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_id;
75
76 Aws::String m_version;
77 bool m_idHasBeenSet = false;
78 bool m_versionHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace PCS
83} // namespace Aws
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PCS_API CustomLaunchTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomLaunchTemplate & WithVersion(VersionT &&value)
AWS_PCS_API CustomLaunchTemplate(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API CustomLaunchTemplate()=default
CustomLaunchTemplate & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue