AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotPlacement.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/ec2/model/Tenancy.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
33 {
34 public:
35 AWS_EC2_API SpotPlacement();
36 AWS_EC2_API SpotPlacement(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API SpotPlacement& 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
49 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
50 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
51 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
52 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
53 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
54 inline SpotPlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
55 inline SpotPlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
56 inline SpotPlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
58
60
63 inline const Aws::String& GetGroupName() const{ return m_groupName; }
64 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
65 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
66 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
67 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
68 inline SpotPlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
69 inline SpotPlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
70 inline SpotPlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
72
74
79 inline const Tenancy& GetTenancy() const{ return m_tenancy; }
80 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
81 inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
82 inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
83 inline SpotPlacement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
84 inline SpotPlacement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_availabilityZone;
89 bool m_availabilityZoneHasBeenSet = false;
90
91 Aws::String m_groupName;
92 bool m_groupNameHasBeenSet = false;
93
94 Tenancy m_tenancy;
95 bool m_tenancyHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
SpotPlacement & WithAvailabilityZone(const Aws::String &value)
const Aws::String & GetAvailabilityZone() const
void SetAvailabilityZone(Aws::String &&value)
SpotPlacement & WithAvailabilityZone(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotPlacement & WithGroupName(Aws::String &&value)
void SetAvailabilityZone(const char *value)
SpotPlacement & WithTenancy(const Tenancy &value)
void SetTenancy(Tenancy &&value)
AWS_EC2_API SpotPlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotPlacement & WithAvailabilityZone(const char *value)
SpotPlacement & WithGroupName(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
SpotPlacement & WithGroupName(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGroupName(const char *value)
void SetGroupName(const Aws::String &value)
AWS_EC2_API SpotPlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGroupName(Aws::String &&value)
const Tenancy & GetTenancy() const
void SetTenancy(const Tenancy &value)
const Aws::String & GetGroupName() const
SpotPlacement & WithTenancy(Tenancy &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream