/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

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

*/ class PolicyGroup { public: AWS_IAM_API PolicyGroup(); AWS_IAM_API PolicyGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API PolicyGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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