AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
CreateAlertResult.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/Alert.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace CloudWatchOmni {
24namespace Model {
26 public:
27 AWS_CLOUDWATCHOMNI_API CreateAlertResult() = default;
30
32
37 inline const Aws::String& GetAlertArn() const { return m_alertArn; }
38 template <typename AlertArnT = Aws::String>
39 void SetAlertArn(AlertArnT&& value) {
40 m_alertArnHasBeenSet = true;
41 m_alertArn = std::forward<AlertArnT>(value);
42 }
43 template <typename AlertArnT = Aws::String>
44 CreateAlertResult& WithAlertArn(AlertArnT&& value) {
45 SetAlertArn(std::forward<AlertArnT>(value));
46 return *this;
47 }
49
51
58 inline const Alert& GetAlert() const { return m_alert; }
59 template <typename AlertT = Alert>
60 void SetAlert(AlertT&& value) {
61 m_alertHasBeenSet = true;
62 m_alert = std::forward<AlertT>(value);
63 }
64 template <typename AlertT = Alert>
65 CreateAlertResult& WithAlert(AlertT&& value) {
66 SetAlert(std::forward<AlertT>(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>
80 CreateAlertResult& WithRequestId(RequestIdT&& value) {
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::String m_alertArn;
89
90 Alert m_alert;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_alertArnHasBeenSet = false;
95 bool m_alertHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchOmni
101} // namespace Aws
AWS_CLOUDWATCHOMNI_API CreateAlertResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateAlertResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHOMNI_API CreateAlertResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_CLOUDWATCHOMNI_API CreateAlertResult()=default
CreateAlertResult & WithAlertArn(AlertArnT &&value)
CreateAlertResult & WithAlert(AlertT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String