/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RolesAnywhere { namespace Model { class GetSubjectResult { public: AWS_ROLESANYWHERE_API GetSubjectResult(); AWS_ROLESANYWHERE_API GetSubjectResult(const Aws::AmazonWebServiceResult& result); AWS_ROLESANYWHERE_API GetSubjectResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The state of the subject after a read or write operation.

*/ inline const SubjectDetail& GetSubject() const{ return m_subject; } /** *

The state of the subject after a read or write operation.

*/ inline void SetSubject(const SubjectDetail& value) { m_subject = value; } /** *

The state of the subject after a read or write operation.

*/ inline void SetSubject(SubjectDetail&& value) { m_subject = std::move(value); } /** *

The state of the subject after a read or write operation.

*/ inline GetSubjectResult& WithSubject(const SubjectDetail& value) { SetSubject(value); return *this;} /** *

The state of the subject after a read or write operation.

*/ inline GetSubjectResult& WithSubject(SubjectDetail&& value) { SetSubject(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 GetSubjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSubjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSubjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: SubjectDetail m_subject; Aws::String m_requestId; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws