/** * 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 RolesAnywhere { namespace Model { class ListSubjectsResult { public: AWS_ROLESANYWHERE_API ListSubjectsResult(); AWS_ROLESANYWHERE_API ListSubjectsResult(const Aws::AmazonWebServiceResult& result); AWS_ROLESANYWHERE_API ListSubjectsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

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

A token that indicates where the output should continue from, if a previous * request did not show all results. To get the next results, make the request * again with this value.

*/ inline ListSubjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A list of subjects.

*/ inline const Aws::Vector& GetSubjects() const{ return m_subjects; } /** *

A list of subjects.

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

A list of subjects.

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

A list of subjects.

*/ inline ListSubjectsResult& WithSubjects(const Aws::Vector& value) { SetSubjects(value); return *this;} /** *

A list of subjects.

*/ inline ListSubjectsResult& WithSubjects(Aws::Vector&& value) { SetSubjects(std::move(value)); return *this;} /** *

A list of subjects.

*/ inline ListSubjectsResult& AddSubjects(const SubjectSummary& value) { m_subjects.push_back(value); return *this; } /** *

A list of subjects.

*/ inline ListSubjectsResult& AddSubjects(SubjectSummary&& value) { m_subjects.push_back(std::move(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 ListSubjectsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListSubjectsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListSubjectsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_subjects; Aws::String m_requestId; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws