AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CheckNoPublicAccessRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/AccessCheckResourceType.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 CheckNoPublicAccessRequest() = 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 "CheckNoPublicAccess"; }
29
30 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
37 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
38 template <typename PolicyDocumentT = Aws::String>
39 void SetPolicyDocument(PolicyDocumentT&& value) {
40 m_policyDocumentHasBeenSet = true;
41 m_policyDocument = std::forward<PolicyDocumentT>(value);
42 }
43 template <typename PolicyDocumentT = Aws::String>
45 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
46 return *this;
47 }
49
51
57 inline AccessCheckResourceType GetResourceType() const { return m_resourceType; }
58 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 m_resourceTypeHasBeenSet = true;
61 m_resourceType = value;
62 }
64 SetResourceType(value);
65 return *this;
66 }
68 private:
69 Aws::String m_policyDocument;
70
72 bool m_policyDocumentHasBeenSet = false;
73 bool m_resourceTypeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AccessAnalyzer
78} // 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