AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationInfo.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/CapacityReservationTenancy.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:
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& GetInstanceType() const{ return m_instanceType; }
48 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
49 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
50 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
51 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
52 inline CapacityReservationInfo& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
53 inline CapacityReservationInfo& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
54 inline CapacityReservationInfo& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
56
58
61 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
62 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
63 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
64 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
65 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
66 inline CapacityReservationInfo& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
67 inline CapacityReservationInfo& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
68 inline CapacityReservationInfo& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
70
72
75 inline const CapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
76 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
77 inline void SetTenancy(const CapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
78 inline void SetTenancy(CapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
79 inline CapacityReservationInfo& WithTenancy(const CapacityReservationTenancy& value) { SetTenancy(value); return *this;}
80 inline CapacityReservationInfo& WithTenancy(CapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_instanceType;
85 bool m_instanceTypeHasBeenSet = false;
86
87 Aws::String m_availabilityZone;
88 bool m_availabilityZoneHasBeenSet = false;
89
91 bool m_tenancyHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
AWS_EC2_API CapacityReservationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(const Aws::String &value)
CapacityReservationInfo & WithInstanceType(const Aws::String &value)
void SetTenancy(const CapacityReservationTenancy &value)
CapacityReservationInfo & WithTenancy(const CapacityReservationTenancy &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceType(const Aws::String &value)
void SetTenancy(CapacityReservationTenancy &&value)
CapacityReservationInfo & WithAvailabilityZone(Aws::String &&value)
const CapacityReservationTenancy & GetTenancy() const
CapacityReservationInfo & WithInstanceType(Aws::String &&value)
CapacityReservationInfo & WithAvailabilityZone(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityReservationInfo & WithAvailabilityZone(const Aws::String &value)
CapacityReservationInfo & WithInstanceType(const char *value)
AWS_EC2_API CapacityReservationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationInfo & WithTenancy(CapacityReservationTenancy &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream