/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a resource.See Also:
AWS
* API Reference
The ID of the resource.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the resource.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the resource.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the resource.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the resource.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the resource.
*/ inline Principal& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the resource.
*/ inline Principal& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the resource.
*/ inline Principal& WithId(const char* value) { SetId(value); return *this;} /** *The type of resource.
*/ inline const PrincipalType& GetType() const{ return m_type; } /** *The type of resource.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of resource.
*/ inline void SetType(const PrincipalType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of resource.
*/ inline void SetType(PrincipalType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of resource.
*/ inline Principal& WithType(const PrincipalType& value) { SetType(value); return *this;} /** *The type of resource.
*/ inline Principal& WithType(PrincipalType&& value) { SetType(std::move(value)); return *this;} /** *The permission information for the resource.
*/ inline const Aws::VectorThe permission information for the resource.
*/ inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; } /** *The permission information for the resource.
*/ inline void SetRoles(const Aws::VectorThe permission information for the resource.
*/ inline void SetRoles(Aws::VectorThe permission information for the resource.
*/ inline Principal& WithRoles(const Aws::VectorThe permission information for the resource.
*/ inline Principal& WithRoles(Aws::VectorThe permission information for the resource.
*/ inline Principal& AddRoles(const PermissionInfo& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; } /** *The permission information for the resource.
*/ inline Principal& AddRoles(PermissionInfo&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; PrincipalType m_type; bool m_typeHasBeenSet = false; Aws::Vector