/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains information about an IAM group entity.

This data type is used * as a response element in the following operations:

See Also:

AWS API * Reference

*/ class Group { public: AWS_IAM_API Group(); AWS_IAM_API Group(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API Group& 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 path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the group. For more information about paths, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithPath(const char* value) { SetPath(value); return *this;} /** *

The friendly name that identifies the group.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The friendly name that identifies the group.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The friendly name that identifies the group.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The friendly name that identifies the group.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The friendly name that identifies the group.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The friendly name that identifies the group.

*/ inline Group& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The friendly name that identifies the group.

*/ inline Group& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The friendly name that identifies the group.

*/ inline Group& 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 Group& 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 Group& 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 Group& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) specifying the group. For more information * about ARNs and how to use them in policies, see IAM * identifiers in the IAM User Guide.

*/ inline Group& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline Group& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the group was created.

*/ inline Group& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} private: Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws