AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNewPolicyDocument(const Aws::String& value) { m_newPolicyDocumentHasBeenSet = true; m_newPolicyDocument = value; }
43 inline void SetNewPolicyDocument(Aws::String&& value) { m_newPolicyDocumentHasBeenSet = true; m_newPolicyDocument = std::move(value); }
44 inline void SetNewPolicyDocument(const char* value) { m_newPolicyDocumentHasBeenSet = true; m_newPolicyDocument.assign(value); }
46 inline CheckNoNewAccessRequest& WithNewPolicyDocument(Aws::String&& value) { SetNewPolicyDocument(std::move(value)); return *this;}
47 inline CheckNoNewAccessRequest& WithNewPolicyDocument(const char* value) { SetNewPolicyDocument(value); return *this;}
49
51
54 inline const Aws::String& GetExistingPolicyDocument() const{ return m_existingPolicyDocument; }
55 inline bool ExistingPolicyDocumentHasBeenSet() const { return m_existingPolicyDocumentHasBeenSet; }
56 inline void SetExistingPolicyDocument(const Aws::String& value) { m_existingPolicyDocumentHasBeenSet = true; m_existingPolicyDocument = value; }
57 inline void SetExistingPolicyDocument(Aws::String&& value) { m_existingPolicyDocumentHasBeenSet = true; m_existingPolicyDocument = std::move(value); }
58 inline void SetExistingPolicyDocument(const char* value) { m_existingPolicyDocumentHasBeenSet = true; m_existingPolicyDocument.assign(value); }
61 inline CheckNoNewAccessRequest& WithExistingPolicyDocument(const char* value) { SetExistingPolicyDocument(value); return *this;}
63
65
74 inline const AccessCheckPolicyType& GetPolicyType() const{ return m_policyType; }
75 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
76 inline void SetPolicyType(const AccessCheckPolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
77 inline void SetPolicyType(AccessCheckPolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
78 inline CheckNoNewAccessRequest& WithPolicyType(const AccessCheckPolicyType& value) { SetPolicyType(value); return *this;}
79 inline CheckNoNewAccessRequest& WithPolicyType(AccessCheckPolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_newPolicyDocument;
84 bool m_newPolicyDocumentHasBeenSet = false;
85
86 Aws::String m_existingPolicyDocument;
87 bool m_existingPolicyDocumentHasBeenSet = false;
88
89 AccessCheckPolicyType m_policyType;
90 bool m_policyTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AccessAnalyzer
95} // namespace Aws
CheckNoNewAccessRequest & WithExistingPolicyDocument(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CheckNoNewAccessRequest & WithNewPolicyDocument(const char *value)
virtual const char * GetServiceRequestName() const override
CheckNoNewAccessRequest & WithPolicyType(AccessCheckPolicyType &&value)
void SetPolicyType(const AccessCheckPolicyType &value)
CheckNoNewAccessRequest & WithExistingPolicyDocument(const char *value)
CheckNoNewAccessRequest & WithNewPolicyDocument(const Aws::String &value)
CheckNoNewAccessRequest & WithExistingPolicyDocument(const Aws::String &value)
CheckNoNewAccessRequest & WithPolicyType(const AccessCheckPolicyType &value)
CheckNoNewAccessRequest & WithNewPolicyDocument(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String