AWS SDK for C++  1.9.153
AWS SDK for C++
DescribeScheduledInstancesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
37  {
38  public:
42 
43 
48  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
49 
54  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
55 
60  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
61 
66  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
67 
72  inline DescribeScheduledInstancesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 
78  inline DescribeScheduledInstancesResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 
84  inline DescribeScheduledInstancesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
85 
86 
90  inline const Aws::Vector<ScheduledInstance>& GetScheduledInstanceSet() const{ return m_scheduledInstanceSet; }
91 
95  inline void SetScheduledInstanceSet(const Aws::Vector<ScheduledInstance>& value) { m_scheduledInstanceSet = value; }
96 
100  inline void SetScheduledInstanceSet(Aws::Vector<ScheduledInstance>&& value) { m_scheduledInstanceSet = std::move(value); }
101 
105  inline DescribeScheduledInstancesResponse& WithScheduledInstanceSet(const Aws::Vector<ScheduledInstance>& value) { SetScheduledInstanceSet(value); return *this;}
106 
110  inline DescribeScheduledInstancesResponse& WithScheduledInstanceSet(Aws::Vector<ScheduledInstance>&& value) { SetScheduledInstanceSet(std::move(value)); return *this;}
111 
115  inline DescribeScheduledInstancesResponse& AddScheduledInstanceSet(const ScheduledInstance& value) { m_scheduledInstanceSet.push_back(value); return *this; }
116 
120  inline DescribeScheduledInstancesResponse& AddScheduledInstanceSet(ScheduledInstance&& value) { m_scheduledInstanceSet.push_back(std::move(value)); return *this; }
121 
122 
123 
124  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
125 
126 
127  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
128 
129 
130  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
131 
132 
133  inline DescribeScheduledInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
134 
135 
136  inline DescribeScheduledInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::String m_nextToken;
141 
142  Aws::Vector<ScheduledInstance> m_scheduledInstanceSet;
143 
144  ResponseMetadata m_responseMetadata;
145  };
146 
147 } // namespace Model
148 } // namespace EC2
149 } // namespace Aws
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeScheduledInstancesResponse.h:130
Aws::EC2::Model::DescribeScheduledInstancesResponse::DescribeScheduledInstancesResponse
DescribeScheduledInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetScheduledInstanceSet
void SetScheduledInstanceSet(Aws::Vector< ScheduledInstance > &&value)
Definition: DescribeScheduledInstancesResponse.h:100
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithScheduledInstanceSet
DescribeScheduledInstancesResponse & WithScheduledInstanceSet(const Aws::Vector< ScheduledInstance > &value)
Definition: DescribeScheduledInstancesResponse.h:105
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithResponseMetadata
DescribeScheduledInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeScheduledInstancesResponse.h:133
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeScheduledInstancesResponse.h:60
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeScheduledInstancesResponse::DescribeScheduledInstancesResponse
DescribeScheduledInstancesResponse()
Aws::EC2::Model::DescribeScheduledInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeScheduledInstancesResponse.h:124
AWSVector.h
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithNextToken
DescribeScheduledInstancesResponse & WithNextToken(const Aws::String &value)
Definition: DescribeScheduledInstancesResponse.h:72
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetScheduledInstanceSet
void SetScheduledInstanceSet(const Aws::Vector< ScheduledInstance > &value)
Definition: DescribeScheduledInstancesResponse.h:95
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithNextToken
DescribeScheduledInstancesResponse & WithNextToken(const char *value)
Definition: DescribeScheduledInstancesResponse.h:84
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithResponseMetadata
DescribeScheduledInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeScheduledInstancesResponse.h:136
Aws::EC2::Model::DescribeScheduledInstancesResponse::AddScheduledInstanceSet
DescribeScheduledInstancesResponse & AddScheduledInstanceSet(ScheduledInstance &&value)
Definition: DescribeScheduledInstancesResponse.h:120
Aws::EC2::Model::ScheduledInstance
Definition: ScheduledInstance.h:34
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeScheduledInstancesResponse.h:127
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeScheduledInstancesResponse.h:66
AWSString.h
Aws::EC2::Model::DescribeScheduledInstancesResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeScheduledInstancesResponse.h:48
Aws::EC2::Model::DescribeScheduledInstancesResponse::AddScheduledInstanceSet
DescribeScheduledInstancesResponse & AddScheduledInstanceSet(const ScheduledInstance &value)
Definition: DescribeScheduledInstancesResponse.h:115
Aws::EC2::Model::DescribeScheduledInstancesResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeScheduledInstancesResponse.h:54
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithNextToken
DescribeScheduledInstancesResponse & WithNextToken(Aws::String &&value)
Definition: DescribeScheduledInstancesResponse.h:78
Aws::EC2::Model::DescribeScheduledInstancesResponse
Definition: DescribeScheduledInstancesResponse.h:37
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeScheduledInstancesResponse::WithScheduledInstanceSet
DescribeScheduledInstancesResponse & WithScheduledInstanceSet(Aws::Vector< ScheduledInstance > &&value)
Definition: DescribeScheduledInstancesResponse.h:110
ScheduledInstance.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeScheduledInstancesResponse::operator=
DescribeScheduledInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EC2_EXPORTS.h
Aws::EC2::Model::DescribeScheduledInstancesResponse::GetScheduledInstanceSet
const Aws::Vector< ScheduledInstance > & GetScheduledInstanceSet() const
Definition: DescribeScheduledInstancesResponse.h:90