AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CheckNoPublicAccessRequest.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/AccessCheckResourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AccessAnalyzer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ACCESSANALYZER_API CheckNoPublicAccessRequest() = 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 "CheckNoPublicAccess"; }
32
33 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
41 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
42 template<typename PolicyDocumentT = Aws::String>
43 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
44 template<typename PolicyDocumentT = Aws::String>
45 CheckNoPublicAccessRequest& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
47
49
55 inline AccessCheckResourceType GetResourceType() const { return m_resourceType; }
56 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
57 inline void SetResourceType(AccessCheckResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
60 private:
61
62 Aws::String m_policyDocument;
63 bool m_policyDocumentHasBeenSet = false;
64
66 bool m_resourceTypeHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace AccessAnalyzer
71} // namespace Aws
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CheckNoPublicAccessRequest & WithResourceType(AccessCheckResourceType value)
CheckNoPublicAccessRequest & WithPolicyDocument(PolicyDocumentT &&value)
AWS_ACCESSANALYZER_API CheckNoPublicAccessRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String