AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetResponse.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/CreateFleetError.h>
12#include <aws/ec2/model/CreateFleetInstance.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{
32 {
33 public:
34 AWS_EC2_API CreateFleetResponse();
37
38
40
43 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
44 inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
45 inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
46 inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
47 inline CreateFleetResponse& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
48 inline CreateFleetResponse& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
49 inline CreateFleetResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;}
51
53
57 inline const Aws::Vector<CreateFleetError>& GetErrors() const{ return m_errors; }
58 inline void SetErrors(const Aws::Vector<CreateFleetError>& value) { m_errors = value; }
59 inline void SetErrors(Aws::Vector<CreateFleetError>&& value) { m_errors = std::move(value); }
60 inline CreateFleetResponse& WithErrors(const Aws::Vector<CreateFleetError>& value) { SetErrors(value); return *this;}
61 inline CreateFleetResponse& WithErrors(Aws::Vector<CreateFleetError>&& value) { SetErrors(std::move(value)); return *this;}
62 inline CreateFleetResponse& AddErrors(const CreateFleetError& value) { m_errors.push_back(value); return *this; }
63 inline CreateFleetResponse& AddErrors(CreateFleetError&& value) { m_errors.push_back(std::move(value)); return *this; }
65
67
71 inline const Aws::Vector<CreateFleetInstance>& GetInstances() const{ return m_instances; }
72 inline void SetInstances(const Aws::Vector<CreateFleetInstance>& value) { m_instances = value; }
73 inline void SetInstances(Aws::Vector<CreateFleetInstance>&& value) { m_instances = std::move(value); }
75 inline CreateFleetResponse& WithInstances(Aws::Vector<CreateFleetInstance>&& value) { SetInstances(std::move(value)); return *this;}
76 inline CreateFleetResponse& AddInstances(const CreateFleetInstance& value) { m_instances.push_back(value); return *this; }
77 inline CreateFleetResponse& AddInstances(CreateFleetInstance&& value) { m_instances.push_back(std::move(value)); return *this; }
79
81
82 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
83 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
84 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
86 inline CreateFleetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_fleetId;
91
93
95
96 ResponseMetadata m_responseMetadata;
97 };
98
99} // namespace Model
100} // namespace EC2
101} // namespace Aws
CreateFleetResponse & WithFleetId(const Aws::String &value)
void SetInstances(Aws::Vector< CreateFleetInstance > &&value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetResponseMetadata(ResponseMetadata &&value)
CreateFleetResponse & WithResponseMetadata(ResponseMetadata &&value)
CreateFleetResponse & WithResponseMetadata(const ResponseMetadata &value)
CreateFleetResponse & WithInstances(Aws::Vector< CreateFleetInstance > &&value)
const Aws::String & GetFleetId() const
const Aws::Vector< CreateFleetError > & GetErrors() const
CreateFleetResponse & WithErrors(const Aws::Vector< CreateFleetError > &value)
CreateFleetResponse & WithFleetId(const char *value)
CreateFleetResponse & WithFleetId(Aws::String &&value)
AWS_EC2_API CreateFleetResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API CreateFleetResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateFleetResponse & AddInstances(const CreateFleetInstance &value)
CreateFleetResponse & WithInstances(const Aws::Vector< CreateFleetInstance > &value)
const Aws::Vector< CreateFleetInstance > & GetInstances() const
void SetErrors(Aws::Vector< CreateFleetError > &&value)
void SetInstances(const Aws::Vector< CreateFleetInstance > &value)
CreateFleetResponse & AddInstances(CreateFleetInstance &&value)
void SetFleetId(const Aws::String &value)
const ResponseMetadata & GetResponseMetadata() const
CreateFleetResponse & AddErrors(const CreateFleetError &value)
void SetErrors(const Aws::Vector< CreateFleetError > &value)
CreateFleetResponse & AddErrors(CreateFleetError &&value)
CreateFleetResponse & WithErrors(Aws::Vector< CreateFleetError > &&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