AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
UpdateFailureModeFindingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/FindingStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace resiliencehubv2 {
16namespace Model {
17
21 public:
22 AWS_RESILIENCEHUBV2_API UpdateFailureModeFindingRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateFailureModeFinding"; }
29
30 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetFindingId() const { return m_findingId; }
37 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
38 template <typename FindingIdT = Aws::String>
39 void SetFindingId(FindingIdT&& value) {
40 m_findingIdHasBeenSet = true;
41 m_findingId = std::forward<FindingIdT>(value);
42 }
43 template <typename FindingIdT = Aws::String>
45 SetFindingId(std::forward<FindingIdT>(value));
46 return *this;
47 }
49
51
54 inline FindingStatus GetStatus() const { return m_status; }
55 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
56 inline void SetStatus(FindingStatus value) {
57 m_statusHasBeenSet = true;
58 m_status = value;
59 }
61 SetStatus(value);
62 return *this;
63 }
65
67
68 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
69 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
70 template <typename ServiceArnT = Aws::String>
71 void SetServiceArn(ServiceArnT&& value) {
72 m_serviceArnHasBeenSet = true;
73 m_serviceArn = std::forward<ServiceArnT>(value);
74 }
75 template <typename ServiceArnT = Aws::String>
77 SetServiceArn(std::forward<ServiceArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetComment() const { return m_comment; }
87 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
88 template <typename CommentT = Aws::String>
89 void SetComment(CommentT&& value) {
90 m_commentHasBeenSet = true;
91 m_comment = std::forward<CommentT>(value);
92 }
93 template <typename CommentT = Aws::String>
95 SetComment(std::forward<CommentT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_findingId;
101
103
104 Aws::String m_serviceArn;
105
106 Aws::String m_comment;
107 bool m_findingIdHasBeenSet = false;
108 bool m_statusHasBeenSet = false;
109 bool m_serviceArnHasBeenSet = false;
110 bool m_commentHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace resiliencehubv2
115} // namespace Aws
UpdateFailureModeFindingRequest & WithFindingId(FindingIdT &&value)
UpdateFailureModeFindingRequest & WithServiceArn(ServiceArnT &&value)
UpdateFailureModeFindingRequest & WithStatus(FindingStatus value)
AWS_RESILIENCEHUBV2_API UpdateFailureModeFindingRequest()=default
UpdateFailureModeFindingRequest & WithComment(CommentT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String