AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DescribeEventsResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/OperationEvent.h>
9#include <aws/cloudformation/model/ResponseMetadata.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation {
26namespace Model {
28 public:
29 AWS_CLOUDFORMATION_API DescribeEventsResult() = default;
32
34
37 inline const Aws::Vector<OperationEvent>& GetOperationEvents() const { return m_operationEvents; }
38 template <typename OperationEventsT = Aws::Vector<OperationEvent>>
39 void SetOperationEvents(OperationEventsT&& value) {
40 m_operationEventsHasBeenSet = true;
41 m_operationEvents = std::forward<OperationEventsT>(value);
42 }
43 template <typename OperationEventsT = Aws::Vector<OperationEvent>>
44 DescribeEventsResult& WithOperationEvents(OperationEventsT&& value) {
45 SetOperationEvents(std::forward<OperationEventsT>(value));
46 return *this;
47 }
48 template <typename OperationEventsT = OperationEvent>
49 DescribeEventsResult& AddOperationEvents(OperationEventsT&& value) {
50 m_operationEventsHasBeenSet = true;
51 m_operationEvents.emplace_back(std::forward<OperationEventsT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
71 DescribeEventsResult& WithNextToken(NextTokenT&& value) {
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
79 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
80 template <typename ResponseMetadataT = ResponseMetadata>
81 void SetResponseMetadata(ResponseMetadataT&& value) {
82 m_responseMetadataHasBeenSet = true;
83 m_responseMetadata = std::forward<ResponseMetadataT>(value);
84 }
85 template <typename ResponseMetadataT = ResponseMetadata>
86 DescribeEventsResult& WithResponseMetadata(ResponseMetadataT&& value) {
87 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
88 return *this;
89 }
91 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
92
93 private:
94 Aws::Vector<OperationEvent> m_operationEvents;
95
96 Aws::String m_nextToken;
97
98 ResponseMetadata m_responseMetadata;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_operationEventsHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_responseMetadataHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CloudFormation
107} // namespace Aws
DescribeEventsResult & WithOperationEvents(OperationEventsT &&value)
AWS_CLOUDFORMATION_API DescribeEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_CLOUDFORMATION_API DescribeEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_CLOUDFORMATION_API DescribeEventsResult()=default
const Aws::Vector< OperationEvent > & GetOperationEvents() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeEventsResult & AddOperationEvents(OperationEventsT &&value)
DescribeEventsResult & WithNextToken(NextTokenT &&value)
DescribeEventsResult & WithResponseMetadata(ResponseMetadataT &&value)
const ResponseMetadata & GetResponseMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument