/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about a group that a managed policy is attached to. This data type is used as a response element in the
* ListEntitiesForPolicy operation. For more information about
* managed policies, refer to Managed
* policies and inline policies in the IAM User Guide. See
* Also:
AWS API
* Reference
The name (friendly name, not ARN) identifying the group.
*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *The name (friendly name, not ARN) identifying the group.
*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *The name (friendly name, not ARN) identifying the group.
*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *The name (friendly name, not ARN) identifying the group.
*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *The name (friendly name, not ARN) identifying the group.
*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *The name (friendly name, not ARN) identifying the group.
*/ inline PolicyGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *The name (friendly name, not ARN) identifying the group.
*/ inline PolicyGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *The name (friendly name, not ARN) identifying the group.
*/ inline PolicyGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *The stable and unique string identifying the group. For more information * about IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} private: Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws