AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RegionT = Aws::String>
52 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
53 template<typename RegionT = Aws::String>
54 SpotPlacementScore& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
56
58
61 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
62 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
63 template<typename AvailabilityZoneIdT = Aws::String>
64 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
65 template<typename AvailabilityZoneIdT = Aws::String>
66 SpotPlacementScore& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
68
70
76 inline int GetScore() const { return m_score; }
77 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
78 inline void SetScore(int value) { m_scoreHasBeenSet = true; m_score = value; }
79 inline SpotPlacementScore& WithScore(int value) { SetScore(value); return *this;}
81 private:
82
83 Aws::String m_region;
84 bool m_regionHasBeenSet = false;
85
86 Aws::String m_availabilityZoneId;
87 bool m_availabilityZoneIdHasBeenSet = false;
88
89 int m_score{0};
90 bool m_scoreHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SpotPlacementScore & WithScore(int value)
const Aws::String & GetAvailabilityZoneId() const
AWS_EC2_API SpotPlacementScore & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
SpotPlacementScore & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_EC2_API SpotPlacementScore(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRegion() const
SpotPlacementScore & WithRegion(RegionT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API SpotPlacementScore()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream