/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Description of the requester that calls the API operation.See Also:
AWS
* API Reference
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