AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
DescribeDeliverySourcesResult.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/DeliverySource.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 DescribeDeliverySourcesResult() = default;
31
33
37 inline const Aws::Vector<DeliverySource>& GetDeliverySources() const { return m_deliverySources; }
38 template <typename DeliverySourcesT = Aws::Vector<DeliverySource>>
39 void SetDeliverySources(DeliverySourcesT&& value) {
40 m_deliverySourcesHasBeenSet = true;
41 m_deliverySources = std::forward<DeliverySourcesT>(value);
42 }
43 template <typename DeliverySourcesT = Aws::Vector<DeliverySource>>
45 SetDeliverySources(std::forward<DeliverySourcesT>(value));
46 return *this;
47 }
48 template <typename DeliverySourcesT = DeliverySource>
50 m_deliverySourcesHasBeenSet = true;
51 m_deliverySources.emplace_back(std::forward<DeliverySourcesT>(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<DeliverySource> m_deliverySources;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_deliverySourcesHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
DescribeDeliverySourcesResult & WithDeliverySources(DeliverySourcesT &&value)
AWS_CLOUDWATCHLOGS_API DescribeDeliverySourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDeliverySourcesResult & AddDeliverySources(DeliverySourcesT &&value)
DescribeDeliverySourcesResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeDeliverySourcesResult()=default
DescribeDeliverySourcesResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API DescribeDeliverySourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DeliverySource > & GetDeliverySources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue