AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
43 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
44 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
45 inline CheckNoPublicAccessRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
46 inline CheckNoPublicAccessRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
47 inline CheckNoPublicAccessRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
49
51
57 inline const AccessCheckResourceType& GetResourceType() const{ return m_resourceType; }
58 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
59 inline void SetResourceType(const AccessCheckResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
60 inline void SetResourceType(AccessCheckResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
62 inline CheckNoPublicAccessRequest& WithResourceType(AccessCheckResourceType&& value) { SetResourceType(std::move(value)); return *this;}
64 private:
65
66 Aws::String m_policyDocument;
67 bool m_policyDocumentHasBeenSet = false;
68
69 AccessCheckResourceType m_resourceType;
70 bool m_resourceTypeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace AccessAnalyzer
75} // namespace Aws
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CheckNoPublicAccessRequest & WithPolicyDocument(const Aws::String &value)
CheckNoPublicAccessRequest & WithResourceType(const AccessCheckResourceType &value)
void SetResourceType(const AccessCheckResourceType &value)
CheckNoPublicAccessRequest & WithResourceType(AccessCheckResourceType &&value)
CheckNoPublicAccessRequest & WithPolicyDocument(const char *value)
CheckNoPublicAccessRequest & WithPolicyDocument(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String