AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityReservationGroup.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
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& GetGroupArn() const{ return m_groupArn; }
48 inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
49 inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
50 inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
51 inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
52 inline CapacityReservationGroup& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
53 inline CapacityReservationGroup& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
54 inline CapacityReservationGroup& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
56
58
61 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
62 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
63 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
64 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
65 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
66 inline CapacityReservationGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
67 inline CapacityReservationGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
68 inline CapacityReservationGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
70 private:
71
72 Aws::String m_groupArn;
73 bool m_groupArnHasBeenSet = false;
74
75 Aws::String m_ownerId;
76 bool m_ownerIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
CapacityReservationGroup & WithOwnerId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CapacityReservationGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationGroup & WithOwnerId(const Aws::String &value)
AWS_EC2_API CapacityReservationGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationGroup & WithGroupArn(const char *value)
CapacityReservationGroup & WithGroupArn(const Aws::String &value)
CapacityReservationGroup & WithOwnerId(const char *value)
CapacityReservationGroup & WithGroupArn(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream