AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVersion() const { return m_version; }
59 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
60 template <typename VersionT = Aws::String>
61 void SetVersion(VersionT&& value) {
62 m_versionHasBeenSet = true;
63 m_version = std::forward<VersionT>(value);
64 }
65 template <typename VersionT = Aws::String>
66 CustomLaunchTemplate& WithVersion(VersionT&& value) {
67 SetVersion(std::forward<VersionT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_id;
73
74 Aws::String m_version;
75 bool m_idHasBeenSet = false;
76 bool m_versionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace PCS
81} // 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