AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFindingRecommendationResult.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/RecommendationError.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/accessanalyzer/model/RecommendationType.h>
13#include <aws/accessanalyzer/model/Status.h>
14#include <aws/accessanalyzer/model/RecommendedStep.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace AccessAnalyzer
30{
31namespace Model
32{
34 {
35 public:
36 AWS_ACCESSANALYZER_API GetFindingRecommendationResult();
39
40
42
46 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
47 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
48 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
50 inline GetFindingRecommendationResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
59 inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; }
60 inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); }
62 inline GetFindingRecommendationResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
73 inline GetFindingRecommendationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline GetFindingRecommendationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline GetFindingRecommendationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
83 inline const RecommendationError& GetError() const{ return m_error; }
84 inline void SetError(const RecommendationError& value) { m_error = value; }
85 inline void SetError(RecommendationError&& value) { m_error = std::move(value); }
86 inline GetFindingRecommendationResult& WithError(const RecommendationError& value) { SetError(value); return *this;}
87 inline GetFindingRecommendationResult& WithError(RecommendationError&& value) { SetError(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
95 inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
96 inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
97 inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
98 inline GetFindingRecommendationResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
99 inline GetFindingRecommendationResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
100 inline GetFindingRecommendationResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
102
104
107 inline const Aws::Vector<RecommendedStep>& GetRecommendedSteps() const{ return m_recommendedSteps; }
108 inline void SetRecommendedSteps(const Aws::Vector<RecommendedStep>& value) { m_recommendedSteps = value; }
109 inline void SetRecommendedSteps(Aws::Vector<RecommendedStep>&& value) { m_recommendedSteps = std::move(value); }
112 inline GetFindingRecommendationResult& AddRecommendedSteps(const RecommendedStep& value) { m_recommendedSteps.push_back(value); return *this; }
113 inline GetFindingRecommendationResult& AddRecommendedSteps(RecommendedStep&& value) { m_recommendedSteps.push_back(std::move(value)); return *this; }
115
117
120 inline const RecommendationType& GetRecommendationType() const{ return m_recommendationType; }
121 inline void SetRecommendationType(const RecommendationType& value) { m_recommendationType = value; }
122 inline void SetRecommendationType(RecommendationType&& value) { m_recommendationType = std::move(value); }
126
128
131 inline const Status& GetStatus() const{ return m_status; }
132 inline void SetStatus(const Status& value) { m_status = value; }
133 inline void SetStatus(Status&& value) { m_status = std::move(value); }
134 inline GetFindingRecommendationResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
135 inline GetFindingRecommendationResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
137
139
140 inline const Aws::String& GetRequestId() const{ return m_requestId; }
141 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
142 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
143 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
144 inline GetFindingRecommendationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
145 inline GetFindingRecommendationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
146 inline GetFindingRecommendationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
148 private:
149
150 Aws::Utils::DateTime m_startedAt;
151
152 Aws::Utils::DateTime m_completedAt;
153
154 Aws::String m_nextToken;
155
156 RecommendationError m_error;
157
158 Aws::String m_resourceArn;
159
160 Aws::Vector<RecommendedStep> m_recommendedSteps;
161
162 RecommendationType m_recommendationType;
163
164 Status m_status;
165
166 Aws::String m_requestId;
167 };
168
169} // namespace Model
170} // namespace AccessAnalyzer
171} // namespace Aws
GetFindingRecommendationResult & WithResourceArn(const Aws::String &value)
GetFindingRecommendationResult & WithError(const RecommendationError &value)
void SetRecommendedSteps(const Aws::Vector< RecommendedStep > &value)
GetFindingRecommendationResult & WithStartedAt(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API GetFindingRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFindingRecommendationResult & AddRecommendedSteps(RecommendedStep &&value)
GetFindingRecommendationResult & WithResourceArn(Aws::String &&value)
GetFindingRecommendationResult & WithError(RecommendationError &&value)
GetFindingRecommendationResult & WithRecommendationType(RecommendationType &&value)
GetFindingRecommendationResult & WithRequestId(Aws::String &&value)
GetFindingRecommendationResult & WithRecommendationType(const RecommendationType &value)
GetFindingRecommendationResult & WithCompletedAt(const Aws::Utils::DateTime &value)
GetFindingRecommendationResult & WithNextToken(Aws::String &&value)
GetFindingRecommendationResult & WithRequestId(const char *value)
GetFindingRecommendationResult & WithNextToken(const Aws::String &value)
GetFindingRecommendationResult & WithStatus(const Status &value)
GetFindingRecommendationResult & WithResourceArn(const char *value)
GetFindingRecommendationResult & WithCompletedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API GetFindingRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RecommendedStep > & GetRecommendedSteps() const
GetFindingRecommendationResult & WithStartedAt(Aws::Utils::DateTime &&value)
GetFindingRecommendationResult & WithNextToken(const char *value)
GetFindingRecommendationResult & WithRecommendedSteps(const Aws::Vector< RecommendedStep > &value)
GetFindingRecommendationResult & WithRecommendedSteps(Aws::Vector< RecommendedStep > &&value)
GetFindingRecommendationResult & WithRequestId(const Aws::String &value)
GetFindingRecommendationResult & AddRecommendedSteps(const RecommendedStep &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue