AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeDeliveriesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/Delivery.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchLogs {
25namespace Model {
27 public:
28 AWS_CLOUDWATCHLOGS_API DescribeDeliveriesResult() = default;
31
33
37 inline const Aws::Vector<Delivery>& GetDeliveries() const { return m_deliveries; }
38 template <typename DeliveriesT = Aws::Vector<Delivery>>
39 void SetDeliveries(DeliveriesT&& value) {
40 m_deliveriesHasBeenSet = true;
41 m_deliveries = std::forward<DeliveriesT>(value);
42 }
43 template <typename DeliveriesT = Aws::Vector<Delivery>>
45 SetDeliveries(std::forward<DeliveriesT>(value));
46 return *this;
47 }
48 template <typename DeliveriesT = Delivery>
50 m_deliveriesHasBeenSet = true;
51 m_deliveries.emplace_back(std::forward<DeliveriesT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::Vector<Delivery> m_deliveries;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_deliveriesHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
AWS_CLOUDWATCHLOGS_API DescribeDeliveriesResult()=default
DescribeDeliveriesResult & WithDeliveries(DeliveriesT &&value)
DescribeDeliveriesResult & AddDeliveries(DeliveriesT &&value)
DescribeDeliveriesResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeDeliveriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Delivery > & GetDeliveries() const
DescribeDeliveriesResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API DescribeDeliveriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue