/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about the type of identity that made the
* request.See Also:
AWS
* API Reference
A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline Identity& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline Identity& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *A unique identifier for the entity that made the call. For Time To Live, the * principalId is "dynamodb.amazonaws.com".
*/ inline Identity& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline Identity& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline Identity& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The type of the identity. For Time To Live, the type is "Service".
*/ inline Identity& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_principalId; bool m_principalIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace DynamoDBStreams } // namespace Aws