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

Description of the requester that calls the API operation.

*

See Also:

AWS * API Reference

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

The identity type of the requester that calls the API * operation.

*/ inline const UserIdentityType& GetType() const{ return m_type; } /** *

The identity type of the requester that calls the API * operation.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The identity type of the requester that calls the API * operation.

*/ inline void SetType(const UserIdentityType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The identity type of the requester that calls the API * operation.

*/ inline void SetType(UserIdentityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The identity type of the requester that calls the API * operation.

*/ inline UserIdentity& WithType(const UserIdentityType& value) { SetType(value); return *this;} /** *

The identity type of the requester that calls the API * operation.

*/ inline UserIdentity& WithType(UserIdentityType&& value) { SetType(std::move(value)); return *this;} /** *

A unique identifier for the requester that calls the API * operation.

*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *

A unique identifier for the requester that calls the API * operation.

*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *

A unique identifier for the requester that calls the API * operation.

*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *

A unique identifier for the requester that calls the API * operation.

*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *

A unique identifier for the requester that calls the API * operation.

*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *

A unique identifier for the requester that calls the API * operation.

*/ inline UserIdentity& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *

A unique identifier for the requester that calls the API * operation.

*/ inline UserIdentity& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *

A unique identifier for the requester that calls the API * operation.

*/ inline UserIdentity& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} private: UserIdentityType m_type; bool m_typeHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws