/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoIdentityProvider { namespace Model { class AdminListGroupsForUserResult { public: AWS_COGNITOIDENTITYPROVIDER_API AdminListGroupsForUserResult(); AWS_COGNITOIDENTITYPROVIDER_API AdminListGroupsForUserResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITYPROVIDER_API AdminListGroupsForUserResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The groups that the user belongs to.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The groups that the user belongs to.

*/ inline void SetGroups(const Aws::Vector& value) { m_groups = value; } /** *

The groups that the user belongs to.

*/ inline void SetGroups(Aws::Vector&& value) { m_groups = std::move(value); } /** *

The groups that the user belongs to.

*/ inline AdminListGroupsForUserResult& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The groups that the user belongs to.

*/ inline AdminListGroupsForUserResult& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The groups that the user belongs to.

*/ inline AdminListGroupsForUserResult& AddGroups(const GroupType& value) { m_groups.push_back(value); return *this; } /** *

The groups that the user belongs to.

*/ inline AdminListGroupsForUserResult& AddGroups(GroupType&& value) { m_groups.push_back(std::move(value)); return *this; } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline AdminListGroupsForUserResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline AdminListGroupsForUserResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline AdminListGroupsForUserResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline AdminListGroupsForUserResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AdminListGroupsForUserResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AdminListGroupsForUserResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_groups; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws