AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetIntegrationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/IntegrationDetails.h>
10#include <aws/logs/model/IntegrationStatus.h>
11#include <aws/logs/model/IntegrationType.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 GetIntegrationResult() = default;
31
33
36 inline const Aws::String& GetIntegrationName() const { return m_integrationName; }
37 template <typename IntegrationNameT = Aws::String>
38 void SetIntegrationName(IntegrationNameT&& value) {
39 m_integrationNameHasBeenSet = true;
40 m_integrationName = std::forward<IntegrationNameT>(value);
41 }
42 template <typename IntegrationNameT = Aws::String>
43 GetIntegrationResult& WithIntegrationName(IntegrationNameT&& value) {
44 SetIntegrationName(std::forward<IntegrationNameT>(value));
45 return *this;
46 }
48
50
54 inline IntegrationType GetIntegrationType() const { return m_integrationType; }
56 m_integrationTypeHasBeenSet = true;
57 m_integrationType = value;
58 }
60 SetIntegrationType(value);
61 return *this;
62 }
64
66
69 inline IntegrationStatus GetIntegrationStatus() const { return m_integrationStatus; }
71 m_integrationStatusHasBeenSet = true;
72 m_integrationStatus = value;
73 }
76 return *this;
77 }
79
81
87 inline const IntegrationDetails& GetIntegrationDetails() const { return m_integrationDetails; }
88 template <typename IntegrationDetailsT = IntegrationDetails>
89 void SetIntegrationDetails(IntegrationDetailsT&& value) {
90 m_integrationDetailsHasBeenSet = true;
91 m_integrationDetails = std::forward<IntegrationDetailsT>(value);
92 }
93 template <typename IntegrationDetailsT = IntegrationDetails>
94 GetIntegrationResult& WithIntegrationDetails(IntegrationDetailsT&& value) {
95 SetIntegrationDetails(std::forward<IntegrationDetailsT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
109 GetIntegrationResult& WithRequestId(RequestIdT&& value) {
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_integrationName;
116
117 IntegrationType m_integrationType{IntegrationType::NOT_SET};
118
120
121 IntegrationDetails m_integrationDetails;
122
123 Aws::String m_requestId;
124 bool m_integrationNameHasBeenSet = false;
125 bool m_integrationTypeHasBeenSet = false;
126 bool m_integrationStatusHasBeenSet = false;
127 bool m_integrationDetailsHasBeenSet = false;
128 bool m_requestIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace CloudWatchLogs
133} // namespace Aws
GetIntegrationResult & WithIntegrationDetails(IntegrationDetailsT &&value)
AWS_CLOUDWATCHLOGS_API GetIntegrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIntegrationDetails(IntegrationDetailsT &&value)
AWS_CLOUDWATCHLOGS_API GetIntegrationResult()=default
GetIntegrationResult & WithIntegrationType(IntegrationType value)
GetIntegrationResult & WithIntegrationName(IntegrationNameT &&value)
GetIntegrationResult & WithRequestId(RequestIdT &&value)
GetIntegrationResult & WithIntegrationStatus(IntegrationStatus value)
const IntegrationDetails & GetIntegrationDetails() const
AWS_CLOUDWATCHLOGS_API GetIntegrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue