AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Ec2LaunchTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
31 public:
32 AWS_GUARDDUTY_API Ec2LaunchTemplate() = default;
33 AWS_GUARDDUTY_API Ec2LaunchTemplate(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetEc2InstanceUids() const { return m_ec2InstanceUids; }
43 inline bool Ec2InstanceUidsHasBeenSet() const { return m_ec2InstanceUidsHasBeenSet; }
44 template <typename Ec2InstanceUidsT = Aws::Vector<Aws::String>>
45 void SetEc2InstanceUids(Ec2InstanceUidsT&& value) {
46 m_ec2InstanceUidsHasBeenSet = true;
47 m_ec2InstanceUids = std::forward<Ec2InstanceUidsT>(value);
48 }
49 template <typename Ec2InstanceUidsT = Aws::Vector<Aws::String>>
50 Ec2LaunchTemplate& WithEc2InstanceUids(Ec2InstanceUidsT&& value) {
51 SetEc2InstanceUids(std::forward<Ec2InstanceUidsT>(value));
52 return *this;
53 }
54 template <typename Ec2InstanceUidsT = Aws::String>
55 Ec2LaunchTemplate& AddEc2InstanceUids(Ec2InstanceUidsT&& value) {
56 m_ec2InstanceUidsHasBeenSet = true;
57 m_ec2InstanceUids.emplace_back(std::forward<Ec2InstanceUidsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetVersion() const { return m_version; }
67 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
68 template <typename VersionT = Aws::String>
69 void SetVersion(VersionT&& value) {
70 m_versionHasBeenSet = true;
71 m_version = std::forward<VersionT>(value);
72 }
73 template <typename VersionT = Aws::String>
74 Ec2LaunchTemplate& WithVersion(VersionT&& value) {
75 SetVersion(std::forward<VersionT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_ec2InstanceUids;
81
82 Aws::String m_version;
83 bool m_ec2InstanceUidsHasBeenSet = false;
84 bool m_versionHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GuardDuty
89} // namespace Aws
Ec2LaunchTemplate & WithVersion(VersionT &&value)
AWS_GUARDDUTY_API Ec2LaunchTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Ec2LaunchTemplate()=default
void SetEc2InstanceUids(Ec2InstanceUidsT &&value)
AWS_GUARDDUTY_API Ec2LaunchTemplate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEc2InstanceUids() const
Ec2LaunchTemplate & WithEc2InstanceUids(Ec2InstanceUidsT &&value)
Ec2LaunchTemplate & AddEc2InstanceUids(Ec2InstanceUidsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue