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

The sub groups that belong to a group.

See Also:

AWS * API Reference

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the sub group you want to map to a group.

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

The identifier of the data source for the sub group you want to map to a * group.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline MemberGroup& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline MemberGroup& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

The identifier of the data source for the sub group you want to map to a * group.

*/ inline MemberGroup& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws