AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutFileSystemPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/elasticfilesystem/EFS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EFS {
15namespace Model {
16
20 public:
21 AWS_EFS_API PutFileSystemPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutFileSystemPolicy"; }
28
29 AWS_EFS_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
37 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
38 template <typename FileSystemIdT = Aws::String>
39 void SetFileSystemId(FileSystemIdT&& value) {
40 m_fileSystemIdHasBeenSet = true;
41 m_fileSystemId = std::forward<FileSystemIdT>(value);
42 }
43 template <typename FileSystemIdT = Aws::String>
45 SetFileSystemId(std::forward<FileSystemIdT>(value));
46 return *this;
47 }
49
51
59 inline const Aws::String& GetPolicy() const { return m_policy; }
60 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
61 template <typename PolicyT = Aws::String>
62 void SetPolicy(PolicyT&& value) {
63 m_policyHasBeenSet = true;
64 m_policy = std::forward<PolicyT>(value);
65 }
66 template <typename PolicyT = Aws::String>
68 SetPolicy(std::forward<PolicyT>(value));
69 return *this;
70 }
72
74
85 inline bool GetBypassPolicyLockoutSafetyCheck() const { return m_bypassPolicyLockoutSafetyCheck; }
86 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
87 inline void SetBypassPolicyLockoutSafetyCheck(bool value) {
88 m_bypassPolicyLockoutSafetyCheckHasBeenSet = true;
89 m_bypassPolicyLockoutSafetyCheck = value;
90 }
93 return *this;
94 }
96 private:
97 Aws::String m_fileSystemId;
98
99 Aws::String m_policy;
100
101 bool m_bypassPolicyLockoutSafetyCheck{false};
102 bool m_fileSystemIdHasBeenSet = false;
103 bool m_policyHasBeenSet = false;
104 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace EFS
109} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutFileSystemPolicyRequest & WithFileSystemId(FileSystemIdT &&value)
PutFileSystemPolicyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
AWS_EFS_API Aws::String SerializePayload() const override
AWS_EFS_API PutFileSystemPolicyRequest()=default
PutFileSystemPolicyRequest & WithPolicy(PolicyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String