/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The proposed access control configuration for an Amazon EFS file system. You
* can propose a configuration for a new Amazon EFS file system or an existing
* Amazon EFS file system that you own by specifying the Amazon EFS policy. For
* more information, see Using file
* systems in Amazon EFS. If the configuration is for an
* existing Amazon EFS file system and you do not specify the Amazon EFS policy,
* then the access preview uses the existing Amazon EFS policy for the file
* system. If the access preview is for a new resource and you do
* not specify the policy, then the access preview assumes an Amazon EFS file
* system without a policy. To propose deletion of an existing
* Amazon EFS file system policy, you can specify an empty string for the Amazon
* EFS policy.
See Also:
AWS
* API Reference
The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline const Aws::String& GetFileSystemPolicy() const{ return m_fileSystemPolicy; } /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline bool FileSystemPolicyHasBeenSet() const { return m_fileSystemPolicyHasBeenSet; } /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline void SetFileSystemPolicy(const Aws::String& value) { m_fileSystemPolicyHasBeenSet = true; m_fileSystemPolicy = value; } /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline void SetFileSystemPolicy(Aws::String&& value) { m_fileSystemPolicyHasBeenSet = true; m_fileSystemPolicy = std::move(value); } /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline void SetFileSystemPolicy(const char* value) { m_fileSystemPolicyHasBeenSet = true; m_fileSystemPolicy.assign(value); } /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline EfsFileSystemConfiguration& WithFileSystemPolicy(const Aws::String& value) { SetFileSystemPolicy(value); return *this;} /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline EfsFileSystemConfiguration& WithFileSystemPolicy(Aws::String&& value) { SetFileSystemPolicy(std::move(value)); return *this;} /** *The JSON policy definition to apply to the Amazon EFS file system. For more * information on the elements that make up a file system policy, see Amazon * EFS Resource-based policies.
*/ inline EfsFileSystemConfiguration& WithFileSystemPolicy(const char* value) { SetFileSystemPolicy(value); return *this;} private: Aws::String m_fileSystemPolicy; bool m_fileSystemPolicyHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws