AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MacHost.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
32 class MacHost
33 {
34 public:
35 AWS_EC2_API MacHost();
36 AWS_EC2_API MacHost(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API MacHost& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetHostId() const{ return m_hostId; }
48 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
49 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
50 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
51 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
52 inline MacHost& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
53 inline MacHost& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
54 inline MacHost& WithHostId(const char* value) { SetHostId(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetMacOSLatestSupportedVersions() const{ return m_macOSLatestSupportedVersions; }
63 inline bool MacOSLatestSupportedVersionsHasBeenSet() const { return m_macOSLatestSupportedVersionsHasBeenSet; }
64 inline void SetMacOSLatestSupportedVersions(const Aws::Vector<Aws::String>& value) { m_macOSLatestSupportedVersionsHasBeenSet = true; m_macOSLatestSupportedVersions = value; }
65 inline void SetMacOSLatestSupportedVersions(Aws::Vector<Aws::String>&& value) { m_macOSLatestSupportedVersionsHasBeenSet = true; m_macOSLatestSupportedVersions = std::move(value); }
68 inline MacHost& AddMacOSLatestSupportedVersions(const Aws::String& value) { m_macOSLatestSupportedVersionsHasBeenSet = true; m_macOSLatestSupportedVersions.push_back(value); return *this; }
69 inline MacHost& AddMacOSLatestSupportedVersions(Aws::String&& value) { m_macOSLatestSupportedVersionsHasBeenSet = true; m_macOSLatestSupportedVersions.push_back(std::move(value)); return *this; }
70 inline MacHost& AddMacOSLatestSupportedVersions(const char* value) { m_macOSLatestSupportedVersionsHasBeenSet = true; m_macOSLatestSupportedVersions.push_back(value); return *this; }
72 private:
73
74 Aws::String m_hostId;
75 bool m_hostIdHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_macOSLatestSupportedVersions;
78 bool m_macOSLatestSupportedVersionsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
void SetMacOSLatestSupportedVersions(const Aws::Vector< Aws::String > &value)
Definition MacHost.h:64
MacHost & WithHostId(const char *value)
Definition MacHost.h:54
MacHost & WithMacOSLatestSupportedVersions(const Aws::Vector< Aws::String > &value)
Definition MacHost.h:66
MacHost & WithHostId(const Aws::String &value)
Definition MacHost.h:52
void SetHostId(Aws::String &&value)
Definition MacHost.h:50
bool HostIdHasBeenSet() const
Definition MacHost.h:48
void SetHostId(const char *value)
Definition MacHost.h:51
const Aws::Vector< Aws::String > & GetMacOSLatestSupportedVersions() const
Definition MacHost.h:62
void SetHostId(const Aws::String &value)
Definition MacHost.h:49
void SetMacOSLatestSupportedVersions(Aws::Vector< Aws::String > &&value)
Definition MacHost.h:65
bool MacOSLatestSupportedVersionsHasBeenSet() const
Definition MacHost.h:63
MacHost & AddMacOSLatestSupportedVersions(const Aws::String &value)
Definition MacHost.h:68
MacHost & AddMacOSLatestSupportedVersions(Aws::String &&value)
Definition MacHost.h:69
AWS_EC2_API MacHost(const Aws::Utils::Xml::XmlNode &xmlNode)
MacHost & WithMacOSLatestSupportedVersions(Aws::Vector< Aws::String > &&value)
Definition MacHost.h:67
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetHostId() const
Definition MacHost.h:47
AWS_EC2_API MacHost & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MacHost & WithHostId(Aws::String &&value)
Definition MacHost.h:53
MacHost & AddMacOSLatestSupportedVersions(const char *value)
Definition MacHost.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream