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

Contains details about an IAM group.

See Also:

AWS * API Reference

*/ class AwsIamGroupDetails { public: AWS_SECURITYHUB_API AwsIamGroupDetails(); AWS_SECURITYHUB_API AwsIamGroupDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsIamGroupDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of the managed policies that are attached to the IAM group.

*/ inline const Aws::Vector& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; } /** *

A list of the managed policies that are attached to the IAM group.

*/ inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; } /** *

A list of the managed policies that are attached to the IAM group.

*/ inline void SetAttachedManagedPolicies(const Aws::Vector& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; } /** *

A list of the managed policies that are attached to the IAM group.

*/ inline void SetAttachedManagedPolicies(Aws::Vector&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); } /** *

A list of the managed policies that are attached to the IAM group.

*/ inline AwsIamGroupDetails& WithAttachedManagedPolicies(const Aws::Vector& value) { SetAttachedManagedPolicies(value); return *this;} /** *

A list of the managed policies that are attached to the IAM group.

*/ inline AwsIamGroupDetails& WithAttachedManagedPolicies(Aws::Vector&& value) { SetAttachedManagedPolicies(std::move(value)); return *this;} /** *

A list of the managed policies that are attached to the IAM group.

*/ inline AwsIamGroupDetails& AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; } /** *

A list of the managed policies that are attached to the IAM group.

*/ inline AwsIamGroupDetails& AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; } /** *

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); } /** *

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamGroupDetails& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;} /** *

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamGroupDetails& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;} /** *

Indicates when the IAM group was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamGroupDetails& WithCreateDate(const char* value) { SetCreateDate(value); return *this;} /** *

The identifier of the IAM group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The identifier of the IAM group.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The identifier of the IAM group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The identifier of the IAM group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The identifier of the IAM group.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The identifier of the IAM group.

*/ inline AwsIamGroupDetails& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The identifier of the IAM group.

*/ inline AwsIamGroupDetails& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The identifier of the IAM group.

*/ inline AwsIamGroupDetails& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

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

The name of the IAM group.

*/ inline AwsIamGroupDetails& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The list of inline policies that are embedded in the group.

*/ inline const Aws::Vector& GetGroupPolicyList() const{ return m_groupPolicyList; } /** *

The list of inline policies that are embedded in the group.

*/ inline bool GroupPolicyListHasBeenSet() const { return m_groupPolicyListHasBeenSet; } /** *

The list of inline policies that are embedded in the group.

*/ inline void SetGroupPolicyList(const Aws::Vector& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList = value; } /** *

The list of inline policies that are embedded in the group.

*/ inline void SetGroupPolicyList(Aws::Vector&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList = std::move(value); } /** *

The list of inline policies that are embedded in the group.

*/ inline AwsIamGroupDetails& WithGroupPolicyList(const Aws::Vector& value) { SetGroupPolicyList(value); return *this;} /** *

The list of inline policies that are embedded in the group.

*/ inline AwsIamGroupDetails& WithGroupPolicyList(Aws::Vector&& value) { SetGroupPolicyList(std::move(value)); return *this;} /** *

The list of inline policies that are embedded in the group.

*/ inline AwsIamGroupDetails& AddGroupPolicyList(const AwsIamGroupPolicy& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList.push_back(value); return *this; } /** *

The list of inline policies that are embedded in the group.

*/ inline AwsIamGroupDetails& AddGroupPolicyList(AwsIamGroupPolicy&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList.push_back(std::move(value)); return *this; } /** *

The path to the group.

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

The path to the group.

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

The path to the group.

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

The path to the group.

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

The path to the group.

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

The path to the group.

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

The path to the group.

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

The path to the group.

*/ inline AwsIamGroupDetails& WithPath(const char* value) { SetPath(value); return *this;} private: Aws::Vector m_attachedManagedPolicies; bool m_attachedManagedPoliciesHasBeenSet = false; Aws::String m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Vector m_groupPolicyList; bool m_groupPolicyListHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws