AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidateResourcePolicyResult.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/secretsmanager/model/ValidationErrorsEntry.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SecretsManager
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SECRETSMANAGER_API ValidateResourcePolicyResult();
35
36
38
41 inline bool GetPolicyValidationPassed() const{ return m_policyValidationPassed; }
42 inline void SetPolicyValidationPassed(bool value) { m_policyValidationPassed = value; }
45
47
50 inline const Aws::Vector<ValidationErrorsEntry>& GetValidationErrors() const{ return m_validationErrors; }
51 inline void SetValidationErrors(const Aws::Vector<ValidationErrorsEntry>& value) { m_validationErrors = value; }
52 inline void SetValidationErrors(Aws::Vector<ValidationErrorsEntry>&& value) { m_validationErrors = std::move(value); }
55 inline ValidateResourcePolicyResult& AddValidationErrors(const ValidationErrorsEntry& value) { m_validationErrors.push_back(value); return *this; }
56 inline ValidateResourcePolicyResult& AddValidationErrors(ValidationErrorsEntry&& value) { m_validationErrors.push_back(std::move(value)); return *this; }
58
60
61 inline const Aws::String& GetRequestId() const{ return m_requestId; }
62 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
63 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
64 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
65 inline ValidateResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
66 inline ValidateResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
67 inline ValidateResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
69 private:
70
71 bool m_policyValidationPassed;
72
73 Aws::Vector<ValidationErrorsEntry> m_validationErrors;
74
75 Aws::String m_requestId;
76 };
77
78} // namespace Model
79} // namespace SecretsManager
80} // namespace Aws
void SetValidationErrors(Aws::Vector< ValidationErrorsEntry > &&value)
ValidateResourcePolicyResult & WithRequestId(const char *value)
ValidateResourcePolicyResult & AddValidationErrors(const ValidationErrorsEntry &value)
ValidateResourcePolicyResult & WithValidationErrors(Aws::Vector< ValidationErrorsEntry > &&value)
ValidateResourcePolicyResult & WithRequestId(Aws::String &&value)
ValidateResourcePolicyResult & WithValidationErrors(const Aws::Vector< ValidationErrorsEntry > &value)
ValidateResourcePolicyResult & WithPolicyValidationPassed(bool value)
AWS_SECRETSMANAGER_API ValidateResourcePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ValidationErrorsEntry > & GetValidationErrors() const
ValidateResourcePolicyResult & AddValidationErrors(ValidationErrorsEntry &&value)
void SetValidationErrors(const Aws::Vector< ValidationErrorsEntry > &value)
ValidateResourcePolicyResult & WithRequestId(const Aws::String &value)
AWS_SECRETSMANAGER_API ValidateResourcePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue