AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CheckNoNewAccessRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/AccessCheckPolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AccessAnalyzer {
16namespace Model {
17
21 public:
22 AWS_ACCESSANALYZER_API CheckNoNewAccessRequest() = 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 "CheckNoNewAccess"; }
29
30 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetNewPolicyDocument() const { return m_newPolicyDocument; }
37 inline bool NewPolicyDocumentHasBeenSet() const { return m_newPolicyDocumentHasBeenSet; }
38 template <typename NewPolicyDocumentT = Aws::String>
39 void SetNewPolicyDocument(NewPolicyDocumentT&& value) {
40 m_newPolicyDocumentHasBeenSet = true;
41 m_newPolicyDocument = std::forward<NewPolicyDocumentT>(value);
42 }
43 template <typename NewPolicyDocumentT = Aws::String>
44 CheckNoNewAccessRequest& WithNewPolicyDocument(NewPolicyDocumentT&& value) {
45 SetNewPolicyDocument(std::forward<NewPolicyDocumentT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetExistingPolicyDocument() const { return m_existingPolicyDocument; }
55 inline bool ExistingPolicyDocumentHasBeenSet() const { return m_existingPolicyDocumentHasBeenSet; }
56 template <typename ExistingPolicyDocumentT = Aws::String>
57 void SetExistingPolicyDocument(ExistingPolicyDocumentT&& value) {
58 m_existingPolicyDocumentHasBeenSet = true;
59 m_existingPolicyDocument = std::forward<ExistingPolicyDocumentT>(value);
60 }
61 template <typename ExistingPolicyDocumentT = Aws::String>
62 CheckNoNewAccessRequest& WithExistingPolicyDocument(ExistingPolicyDocumentT&& value) {
63 SetExistingPolicyDocument(std::forward<ExistingPolicyDocumentT>(value));
64 return *this;
65 }
67
69
78 inline AccessCheckPolicyType GetPolicyType() const { return m_policyType; }
79 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
81 m_policyTypeHasBeenSet = true;
82 m_policyType = value;
83 }
85 SetPolicyType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_newPolicyDocument;
91
92 Aws::String m_existingPolicyDocument;
93
95 bool m_newPolicyDocumentHasBeenSet = false;
96 bool m_existingPolicyDocumentHasBeenSet = false;
97 bool m_policyTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AccessAnalyzer
102} // namespace Aws
CheckNoNewAccessRequest & WithPolicyType(AccessCheckPolicyType value)
void SetExistingPolicyDocument(ExistingPolicyDocumentT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CheckNoNewAccessRequest & WithExistingPolicyDocument(ExistingPolicyDocumentT &&value)
AWS_ACCESSANALYZER_API CheckNoNewAccessRequest()=default
CheckNoNewAccessRequest & WithNewPolicyDocument(NewPolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String