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

The Lake Formation principal. Supported principals are IAM users or IAM * roles.

See Also:

AWS * API Reference

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

An identifier for the Lake Formation principal.

*/ inline const Aws::String& GetDataLakePrincipalIdentifier() const{ return m_dataLakePrincipalIdentifier; } /** *

An identifier for the Lake Formation principal.

*/ inline bool DataLakePrincipalIdentifierHasBeenSet() const { return m_dataLakePrincipalIdentifierHasBeenSet; } /** *

An identifier for the Lake Formation principal.

*/ inline void SetDataLakePrincipalIdentifier(const Aws::String& value) { m_dataLakePrincipalIdentifierHasBeenSet = true; m_dataLakePrincipalIdentifier = value; } /** *

An identifier for the Lake Formation principal.

*/ inline void SetDataLakePrincipalIdentifier(Aws::String&& value) { m_dataLakePrincipalIdentifierHasBeenSet = true; m_dataLakePrincipalIdentifier = std::move(value); } /** *

An identifier for the Lake Formation principal.

*/ inline void SetDataLakePrincipalIdentifier(const char* value) { m_dataLakePrincipalIdentifierHasBeenSet = true; m_dataLakePrincipalIdentifier.assign(value); } /** *

An identifier for the Lake Formation principal.

*/ inline DataLakePrincipal& WithDataLakePrincipalIdentifier(const Aws::String& value) { SetDataLakePrincipalIdentifier(value); return *this;} /** *

An identifier for the Lake Formation principal.

*/ inline DataLakePrincipal& WithDataLakePrincipalIdentifier(Aws::String&& value) { SetDataLakePrincipalIdentifier(std::move(value)); return *this;} /** *

An identifier for the Lake Formation principal.

*/ inline DataLakePrincipal& WithDataLakePrincipalIdentifier(const char* value) { SetDataLakePrincipalIdentifier(value); return *this;} private: Aws::String m_dataLakePrincipalIdentifier; bool m_dataLakePrincipalIdentifierHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws