AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
43 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
44 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
45 inline PutFileSystemPolicyRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
46 inline PutFileSystemPolicyRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
47 inline PutFileSystemPolicyRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
49
51
59 inline const Aws::String& GetPolicy() const{ return m_policy; }
60 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
61 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
62 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
63 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
64 inline PutFileSystemPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
65 inline PutFileSystemPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
66 inline PutFileSystemPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
68
70
81 inline bool GetBypassPolicyLockoutSafetyCheck() const{ return m_bypassPolicyLockoutSafetyCheck; }
82 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
83 inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
86 private:
87
88 Aws::String m_fileSystemId;
89 bool m_fileSystemIdHasBeenSet = false;
90
91 Aws::String m_policy;
92 bool m_policyHasBeenSet = false;
93
94 bool m_bypassPolicyLockoutSafetyCheck;
95 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EFS
100} // namespace Aws
PutFileSystemPolicyRequest & WithFileSystemId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutFileSystemPolicyRequest & WithPolicy(Aws::String &&value)
PutFileSystemPolicyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
AWS_EFS_API Aws::String SerializePayload() const override
PutFileSystemPolicyRequest & WithFileSystemId(Aws::String &&value)
PutFileSystemPolicyRequest & WithPolicy(const char *value)
PutFileSystemPolicyRequest & WithFileSystemId(const char *value)
PutFileSystemPolicyRequest & WithPolicy(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String