AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CheckNoNewAccessRequest.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/accessanalyzer/model/AccessCheckPolicyType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AccessAnalyzer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ACCESSANALYZER_API CheckNoNewAccessRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CheckNoNewAccess"; }
32
33 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetNewPolicyDocument() const { return m_newPolicyDocument; }
41 inline bool NewPolicyDocumentHasBeenSet() const { return m_newPolicyDocumentHasBeenSet; }
42 template<typename NewPolicyDocumentT = Aws::String>
43 void SetNewPolicyDocument(NewPolicyDocumentT&& value) { m_newPolicyDocumentHasBeenSet = true; m_newPolicyDocument = std::forward<NewPolicyDocumentT>(value); }
44 template<typename NewPolicyDocumentT = Aws::String>
45 CheckNoNewAccessRequest& WithNewPolicyDocument(NewPolicyDocumentT&& value) { SetNewPolicyDocument(std::forward<NewPolicyDocumentT>(value)); return *this;}
47
49
52 inline const Aws::String& GetExistingPolicyDocument() const { return m_existingPolicyDocument; }
53 inline bool ExistingPolicyDocumentHasBeenSet() const { return m_existingPolicyDocumentHasBeenSet; }
54 template<typename ExistingPolicyDocumentT = Aws::String>
55 void SetExistingPolicyDocument(ExistingPolicyDocumentT&& value) { m_existingPolicyDocumentHasBeenSet = true; m_existingPolicyDocument = std::forward<ExistingPolicyDocumentT>(value); }
56 template<typename ExistingPolicyDocumentT = Aws::String>
57 CheckNoNewAccessRequest& WithExistingPolicyDocument(ExistingPolicyDocumentT&& value) { SetExistingPolicyDocument(std::forward<ExistingPolicyDocumentT>(value)); return *this;}
59
61
70 inline AccessCheckPolicyType GetPolicyType() const { return m_policyType; }
71 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
72 inline void SetPolicyType(AccessCheckPolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
75 private:
76
77 Aws::String m_newPolicyDocument;
78 bool m_newPolicyDocumentHasBeenSet = false;
79
80 Aws::String m_existingPolicyDocument;
81 bool m_existingPolicyDocumentHasBeenSet = false;
82
84 bool m_policyTypeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace AccessAnalyzer
89} // 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