AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DescribePublishingDestinationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/DestinationProperties.h>
12#include <aws/guardduty/model/DestinationType.h>
13#include <aws/guardduty/model/PublishingStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty {
27namespace Model {
29 public:
30 AWS_GUARDDUTY_API DescribePublishingDestinationResult() = default;
33
35
38 inline const Aws::String& GetDestinationId() const { return m_destinationId; }
39 template <typename DestinationIdT = Aws::String>
40 void SetDestinationId(DestinationIdT&& value) {
41 m_destinationIdHasBeenSet = true;
42 m_destinationId = std::forward<DestinationIdT>(value);
43 }
44 template <typename DestinationIdT = Aws::String>
46 SetDestinationId(std::forward<DestinationIdT>(value));
47 return *this;
48 }
50
52
56 inline DestinationType GetDestinationType() const { return m_destinationType; }
58 m_destinationTypeHasBeenSet = true;
59 m_destinationType = value;
60 }
62 SetDestinationType(value);
63 return *this;
64 }
66
68
71 inline PublishingStatus GetStatus() const { return m_status; }
72 inline void SetStatus(PublishingStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
87 inline long long GetPublishingFailureStartTimestamp() const { return m_publishingFailureStartTimestamp; }
88 inline void SetPublishingFailureStartTimestamp(long long value) {
89 m_publishingFailureStartTimestampHasBeenSet = true;
90 m_publishingFailureStartTimestamp = value;
91 }
94 return *this;
95 }
97
99
104 inline const DestinationProperties& GetDestinationProperties() const { return m_destinationProperties; }
105 template <typename DestinationPropertiesT = DestinationProperties>
106 void SetDestinationProperties(DestinationPropertiesT&& value) {
107 m_destinationPropertiesHasBeenSet = true;
108 m_destinationProperties = std::forward<DestinationPropertiesT>(value);
109 }
110 template <typename DestinationPropertiesT = DestinationProperties>
112 SetDestinationProperties(std::forward<DestinationPropertiesT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags = std::forward<TagsT>(value);
126 }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 SetTags(std::forward<TagsT>(value));
130 return *this;
131 }
132 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 DescribePublishingDestinationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
155
156 private:
157 Aws::String m_destinationId;
158
159 DestinationType m_destinationType{DestinationType::NOT_SET};
160
162
163 long long m_publishingFailureStartTimestamp{0};
164
165 DestinationProperties m_destinationProperties;
166
168
169 Aws::String m_requestId;
170 Aws::Http::HttpResponseCode m_HttpResponseCode;
171 bool m_destinationIdHasBeenSet = false;
172 bool m_destinationTypeHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_publishingFailureStartTimestampHasBeenSet = false;
175 bool m_destinationPropertiesHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177 bool m_requestIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace GuardDuty
182} // namespace Aws
DescribePublishingDestinationResult & WithDestinationId(DestinationIdT &&value)
DescribePublishingDestinationResult & WithStatus(PublishingStatus value)
AWS_GUARDDUTY_API DescribePublishingDestinationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GUARDDUTY_API DescribePublishingDestinationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePublishingDestinationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribePublishingDestinationResult & WithDestinationType(DestinationType value)
DescribePublishingDestinationResult & WithPublishingFailureStartTimestamp(long long value)
DescribePublishingDestinationResult & WithDestinationProperties(DestinationPropertiesT &&value)
DescribePublishingDestinationResult & WithRequestId(RequestIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue