AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
PutFileSystemPolicyRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EFS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EFS_API PutFileSystemPolicyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutFileSystemPolicy"; }
31
32 AWS_EFS_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
41 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
42 template<typename FileSystemIdT = Aws::String>
43 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
44 template<typename FileSystemIdT = Aws::String>
45 PutFileSystemPolicyRequest& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
47
49
57 inline const Aws::String& GetPolicy() const { return m_policy; }
58 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
59 template<typename PolicyT = Aws::String>
60 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
61 template<typename PolicyT = Aws::String>
62 PutFileSystemPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
64
66
77 inline bool GetBypassPolicyLockoutSafetyCheck() const { return m_bypassPolicyLockoutSafetyCheck; }
78 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
79 inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
82 private:
83
84 Aws::String m_fileSystemId;
85 bool m_fileSystemIdHasBeenSet = false;
86
87 Aws::String m_policy;
88 bool m_policyHasBeenSet = false;
89
90 bool m_bypassPolicyLockoutSafetyCheck{false};
91 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EFS
96} // 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