AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CheckAccessNotGrantedRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/accessanalyzer/model/AccessCheckPolicyType.h>
12#include <aws/accessanalyzer/model/Access.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AccessAnalyzer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ACCESSANALYZER_API CheckAccessNotGrantedRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CheckAccessNotGranted"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
43 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
44 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
45 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
46 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
48 inline CheckAccessNotGrantedRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
49 inline CheckAccessNotGrantedRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
51
53
62 inline const Aws::Vector<Access>& GetAccess() const{ return m_access; }
63 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
64 inline void SetAccess(const Aws::Vector<Access>& value) { m_accessHasBeenSet = true; m_access = value; }
65 inline void SetAccess(Aws::Vector<Access>&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
66 inline CheckAccessNotGrantedRequest& WithAccess(const Aws::Vector<Access>& value) { SetAccess(value); return *this;}
67 inline CheckAccessNotGrantedRequest& WithAccess(Aws::Vector<Access>&& value) { SetAccess(std::move(value)); return *this;}
68 inline CheckAccessNotGrantedRequest& AddAccess(const Access& value) { m_accessHasBeenSet = true; m_access.push_back(value); return *this; }
69 inline CheckAccessNotGrantedRequest& AddAccess(Access&& value) { m_accessHasBeenSet = true; m_access.push_back(std::move(value)); return *this; }
71
73
82 inline const AccessCheckPolicyType& GetPolicyType() const{ return m_policyType; }
83 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
84 inline void SetPolicyType(const AccessCheckPolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
85 inline void SetPolicyType(AccessCheckPolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
87 inline CheckAccessNotGrantedRequest& WithPolicyType(AccessCheckPolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
89 private:
90
91 Aws::String m_policyDocument;
92 bool m_policyDocumentHasBeenSet = false;
93
94 Aws::Vector<Access> m_access;
95 bool m_accessHasBeenSet = false;
96
97 AccessCheckPolicyType m_policyType;
98 bool m_policyTypeHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace AccessAnalyzer
103} // namespace Aws
CheckAccessNotGrantedRequest & WithPolicyDocument(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CheckAccessNotGrantedRequest & WithAccess(Aws::Vector< Access > &&value)
CheckAccessNotGrantedRequest & WithPolicyDocument(const char *value)
CheckAccessNotGrantedRequest & AddAccess(Access &&value)
CheckAccessNotGrantedRequest & WithAccess(const Aws::Vector< Access > &value)
CheckAccessNotGrantedRequest & AddAccess(const Access &value)
CheckAccessNotGrantedRequest & WithPolicyType(AccessCheckPolicyType &&value)
CheckAccessNotGrantedRequest & WithPolicyDocument(const Aws::String &value)
CheckAccessNotGrantedRequest & WithPolicyType(const AccessCheckPolicyType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector