AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RunInstancesResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/GroupIdentifier.h>
12#include <aws/ec2/model/Instance.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
39 {
40 public:
41 AWS_EC2_API RunInstancesResponse();
44
45
47
50 inline const Aws::String& GetReservationId() const{ return m_reservationId; }
51 inline void SetReservationId(const Aws::String& value) { m_reservationId = value; }
52 inline void SetReservationId(Aws::String&& value) { m_reservationId = std::move(value); }
53 inline void SetReservationId(const char* value) { m_reservationId.assign(value); }
54 inline RunInstancesResponse& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
55 inline RunInstancesResponse& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
56 inline RunInstancesResponse& WithReservationId(const char* value) { SetReservationId(value); return *this;}
58
60
63 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
64 inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
65 inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
66 inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
67 inline RunInstancesResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
68 inline RunInstancesResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
69 inline RunInstancesResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
71
73
77 inline const Aws::String& GetRequesterId() const{ return m_requesterId; }
78 inline void SetRequesterId(const Aws::String& value) { m_requesterId = value; }
79 inline void SetRequesterId(Aws::String&& value) { m_requesterId = std::move(value); }
80 inline void SetRequesterId(const char* value) { m_requesterId.assign(value); }
81 inline RunInstancesResponse& WithRequesterId(const Aws::String& value) { SetRequesterId(value); return *this;}
82 inline RunInstancesResponse& WithRequesterId(Aws::String&& value) { SetRequesterId(std::move(value)); return *this;}
83 inline RunInstancesResponse& WithRequesterId(const char* value) { SetRequesterId(value); return *this;}
85
87
90 inline const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
91 inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groups = value; }
92 inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groups = std::move(value); }
93 inline RunInstancesResponse& WithGroups(const Aws::Vector<GroupIdentifier>& value) { SetGroups(value); return *this;}
94 inline RunInstancesResponse& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(std::move(value)); return *this;}
95 inline RunInstancesResponse& AddGroups(const GroupIdentifier& value) { m_groups.push_back(value); return *this; }
96 inline RunInstancesResponse& AddGroups(GroupIdentifier&& value) { m_groups.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
104 inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
105 inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
106 inline RunInstancesResponse& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
107 inline RunInstancesResponse& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
108 inline RunInstancesResponse& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
109 inline RunInstancesResponse& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
111
113
114 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
115 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
116 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 inline RunInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_reservationId;
123
124 Aws::String m_ownerId;
125
126 Aws::String m_requesterId;
127
129
130 Aws::Vector<Instance> m_instances;
131
132 ResponseMetadata m_responseMetadata;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
void SetResponseMetadata(ResponseMetadata &&value)
RunInstancesResponse & WithInstances(const Aws::Vector< Instance > &value)
const ResponseMetadata & GetResponseMetadata() const
RunInstancesResponse & WithReservationId(Aws::String &&value)
RunInstancesResponse & WithGroups(const Aws::Vector< GroupIdentifier > &value)
const Aws::String & GetReservationId() const
RunInstancesResponse & WithOwnerId(const Aws::String &value)
const Aws::String & GetRequesterId() const
RunInstancesResponse & WithOwnerId(const char *value)
void SetOwnerId(const Aws::String &value)
void SetReservationId(const Aws::String &value)
void SetInstances(Aws::Vector< Instance > &&value)
RunInstancesResponse & WithOwnerId(Aws::String &&value)
RunInstancesResponse & WithReservationId(const Aws::String &value)
RunInstancesResponse & WithInstances(Aws::Vector< Instance > &&value)
RunInstancesResponse & WithReservationId(const char *value)
AWS_EC2_API RunInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Instance > & GetInstances() const
void SetGroups(Aws::Vector< GroupIdentifier > &&value)
RunInstancesResponse & WithRequesterId(const Aws::String &value)
void SetRequesterId(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
RunInstancesResponse & AddGroups(GroupIdentifier &&value)
RunInstancesResponse & AddInstances(const Instance &value)
void SetInstances(const Aws::Vector< Instance > &value)
RunInstancesResponse & WithGroups(Aws::Vector< GroupIdentifier > &&value)
AWS_EC2_API RunInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< GroupIdentifier > & GetGroups() const
RunInstancesResponse & AddGroups(const GroupIdentifier &value)
RunInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
RunInstancesResponse & WithRequesterId(const char *value)
RunInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
RunInstancesResponse & WithRequesterId(Aws::String &&value)
RunInstancesResponse & AddInstances(Instance &&value)
void SetGroups(const Aws::Vector< GroupIdentifier > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument