AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotPlacementScore.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_EC2_API SpotPlacementScore();
38 AWS_EC2_API SpotPlacementScore(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetRegion() const{ return m_region; }
50 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
51 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
52 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
53 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
54 inline SpotPlacementScore& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
55 inline SpotPlacementScore& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
56 inline SpotPlacementScore& WithRegion(const char* value) { SetRegion(value); return *this;}
58
60
63 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
64 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
65 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
66 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
67 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
68 inline SpotPlacementScore& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
69 inline SpotPlacementScore& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
70 inline SpotPlacementScore& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
72
74
80 inline int GetScore() const{ return m_score; }
81 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
82 inline void SetScore(int value) { m_scoreHasBeenSet = true; m_score = value; }
83 inline SpotPlacementScore& WithScore(int value) { SetScore(value); return *this;}
85 private:
86
87 Aws::String m_region;
88 bool m_regionHasBeenSet = false;
89
90 Aws::String m_availabilityZoneId;
91 bool m_availabilityZoneIdHasBeenSet = false;
92
93 int m_score;
94 bool m_scoreHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
SpotPlacementScore & WithAvailabilityZoneId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SpotPlacementScore & WithScore(int value)
SpotPlacementScore & WithRegion(const char *value)
const Aws::String & GetAvailabilityZoneId() const
void SetAvailabilityZoneId(const char *value)
SpotPlacementScore & WithRegion(Aws::String &&value)
SpotPlacementScore & WithRegion(const Aws::String &value)
AWS_EC2_API SpotPlacementScore & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRegion(const Aws::String &value)
void SetAvailabilityZoneId(const Aws::String &value)
AWS_EC2_API SpotPlacementScore(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRegion() const
void SetAvailabilityZoneId(Aws::String &&value)
void SetRegion(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotPlacementScore & WithAvailabilityZoneId(const Aws::String &value)
SpotPlacementScore & WithAvailabilityZoneId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream