AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CheckAccessNotGrantedSdkResult.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/CheckAccessNotGrantedResult.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/accessanalyzer/model/ReasonSummary.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AccessAnalyzer
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ACCESSANALYZER_API CheckAccessNotGrantedSdkResult();
36
37
39
46 inline const CheckAccessNotGrantedResult& GetResult() const{ return m_result; }
47 inline void SetResult(const CheckAccessNotGrantedResult& value) { m_result = value; }
48 inline void SetResult(CheckAccessNotGrantedResult&& value) { m_result = std::move(value); }
50 inline CheckAccessNotGrantedSdkResult& WithResult(CheckAccessNotGrantedResult&& value) { SetResult(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetMessage() const{ return m_message; }
58 inline void SetMessage(const Aws::String& value) { m_message = value; }
59 inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
60 inline void SetMessage(const char* value) { m_message.assign(value); }
61 inline CheckAccessNotGrantedSdkResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
62 inline CheckAccessNotGrantedSdkResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
63 inline CheckAccessNotGrantedSdkResult& WithMessage(const char* value) { SetMessage(value); return *this;}
65
67
70 inline const Aws::Vector<ReasonSummary>& GetReasons() const{ return m_reasons; }
71 inline void SetReasons(const Aws::Vector<ReasonSummary>& value) { m_reasons = value; }
72 inline void SetReasons(Aws::Vector<ReasonSummary>&& value) { m_reasons = std::move(value); }
74 inline CheckAccessNotGrantedSdkResult& WithReasons(Aws::Vector<ReasonSummary>&& value) { SetReasons(std::move(value)); return *this;}
75 inline CheckAccessNotGrantedSdkResult& AddReasons(const ReasonSummary& value) { m_reasons.push_back(value); return *this; }
76 inline CheckAccessNotGrantedSdkResult& AddReasons(ReasonSummary&& value) { m_reasons.push_back(std::move(value)); return *this; }
78
80
81 inline const Aws::String& GetRequestId() const{ return m_requestId; }
82 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
83 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
84 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
85 inline CheckAccessNotGrantedSdkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
86 inline CheckAccessNotGrantedSdkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
87 inline CheckAccessNotGrantedSdkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
89 private:
90
92
93 Aws::String m_message;
94
96
97 Aws::String m_requestId;
98 };
99
100} // namespace Model
101} // namespace AccessAnalyzer
102} // namespace Aws
AWS_ACCESSANALYZER_API CheckAccessNotGrantedSdkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckAccessNotGrantedSdkResult & AddReasons(ReasonSummary &&value)
CheckAccessNotGrantedSdkResult & WithReasons(const Aws::Vector< ReasonSummary > &value)
CheckAccessNotGrantedSdkResult & WithRequestId(const Aws::String &value)
CheckAccessNotGrantedSdkResult & WithResult(const CheckAccessNotGrantedResult &value)
CheckAccessNotGrantedSdkResult & WithMessage(const Aws::String &value)
CheckAccessNotGrantedSdkResult & WithResult(CheckAccessNotGrantedResult &&value)
AWS_ACCESSANALYZER_API CheckAccessNotGrantedSdkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckAccessNotGrantedSdkResult & WithReasons(Aws::Vector< ReasonSummary > &&value)
CheckAccessNotGrantedSdkResult & WithMessage(Aws::String &&value)
CheckAccessNotGrantedSdkResult & AddReasons(const ReasonSummary &value)
CheckAccessNotGrantedSdkResult & WithRequestId(Aws::String &&value)
CheckAccessNotGrantedSdkResult & WithMessage(const char *value)
CheckAccessNotGrantedSdkResult & WithRequestId(const char *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