/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { /** *

Describes the read, write, and delete permissions users have against your * storage S3 bucket.

See Also:

AWS * API Reference

*/ class BackendStoragePermissions { public: AWS_AMPLIFYBACKEND_API BackendStoragePermissions(); AWS_AMPLIFYBACKEND_API BackendStoragePermissions(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API BackendStoragePermissions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline const Aws::Vector& GetAuthenticated() const{ return m_authenticated; } /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline bool AuthenticatedHasBeenSet() const { return m_authenticatedHasBeenSet; } /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline void SetAuthenticated(const Aws::Vector& value) { m_authenticatedHasBeenSet = true; m_authenticated = value; } /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline void SetAuthenticated(Aws::Vector&& value) { m_authenticatedHasBeenSet = true; m_authenticated = std::move(value); } /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline BackendStoragePermissions& WithAuthenticated(const Aws::Vector& value) { SetAuthenticated(value); return *this;} /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline BackendStoragePermissions& WithAuthenticated(Aws::Vector&& value) { SetAuthenticated(std::move(value)); return *this;} /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline BackendStoragePermissions& AddAuthenticated(const AuthenticatedElement& value) { m_authenticatedHasBeenSet = true; m_authenticated.push_back(value); return *this; } /** *

Lists all authenticated user read, write, and delete permissions for your S3 * bucket.

*/ inline BackendStoragePermissions& AddAuthenticated(AuthenticatedElement&& value) { m_authenticatedHasBeenSet = true; m_authenticated.push_back(std::move(value)); return *this; } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline const Aws::Vector& GetUnAuthenticated() const{ return m_unAuthenticated; } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline bool UnAuthenticatedHasBeenSet() const { return m_unAuthenticatedHasBeenSet; } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline void SetUnAuthenticated(const Aws::Vector& value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated = value; } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline void SetUnAuthenticated(Aws::Vector&& value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated = std::move(value); } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline BackendStoragePermissions& WithUnAuthenticated(const Aws::Vector& value) { SetUnAuthenticated(value); return *this;} /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline BackendStoragePermissions& WithUnAuthenticated(Aws::Vector&& value) { SetUnAuthenticated(std::move(value)); return *this;} /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline BackendStoragePermissions& AddUnAuthenticated(const UnAuthenticatedElement& value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated.push_back(value); return *this; } /** *

Lists all unauthenticated user read, write, and delete permissions for your * S3 bucket.

*/ inline BackendStoragePermissions& AddUnAuthenticated(UnAuthenticatedElement&& value) { m_unAuthenticatedHasBeenSet = true; m_unAuthenticated.push_back(std::move(value)); return *this; } private: Aws::Vector m_authenticated; bool m_authenticatedHasBeenSet = false; Aws::Vector m_unAuthenticated; bool m_unAuthenticatedHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws