/** * 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 SecurityLake { namespace Model { /** *

The AWS identity.

See Also:

AWS * API Reference

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

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline const Aws::String& GetExternalId() const{ return m_externalId; } /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; } /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; } /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); } /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); } /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline AwsIdentity& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;} /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline AwsIdentity& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;} /** *

The external ID used to estalish trust relationship with the AWS * identity.

*/ inline AwsIdentity& WithExternalId(const char* value) { SetExternalId(value); return *this;} /** *

The AWS identity principal.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

The AWS identity principal.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The AWS identity principal.

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The AWS identity principal.

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The AWS identity principal.

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

The AWS identity principal.

*/ inline AwsIdentity& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

The AWS identity principal.

*/ inline AwsIdentity& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The AWS identity principal.

*/ inline AwsIdentity& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} private: Aws::String m_externalId; bool m_externalIdHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws