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

The identifier for the current revision of profile permissions.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

The identifier for the current revision of profile permissions.

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

The identifier for the current revision of profile permissions.

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

The identifier for the current revision of profile permissions.

*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** *

The identifier for the current revision of profile permissions.

*/ inline ListProfilePermissionsResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The identifier for the current revision of profile permissions.

*/ inline ListProfilePermissionsResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The identifier for the current revision of profile permissions.

*/ inline ListProfilePermissionsResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

Total size of the policy associated with the Signing Profile in bytes.

*/ inline int GetPolicySizeBytes() const{ return m_policySizeBytes; } /** *

Total size of the policy associated with the Signing Profile in bytes.

*/ inline void SetPolicySizeBytes(int value) { m_policySizeBytes = value; } /** *

Total size of the policy associated with the Signing Profile in bytes.

*/ inline ListProfilePermissionsResult& WithPolicySizeBytes(int value) { SetPolicySizeBytes(value); return *this;} /** *

List of permissions associated with the Signing Profile.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

List of permissions associated with the Signing Profile.

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

List of permissions associated with the Signing Profile.

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

List of permissions associated with the Signing Profile.

*/ inline ListProfilePermissionsResult& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

List of permissions associated with the Signing Profile.

*/ inline ListProfilePermissionsResult& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

List of permissions associated with the Signing Profile.

*/ inline ListProfilePermissionsResult& AddPermissions(const Permission& value) { m_permissions.push_back(value); return *this; } /** *

List of permissions associated with the Signing Profile.

*/ inline ListProfilePermissionsResult& AddPermissions(Permission&& value) { m_permissions.push_back(std::move(value)); return *this; } /** *

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

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

String for specifying the next set of paginated results.

*/ inline ListProfilePermissionsResult& 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 ListProfilePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListProfilePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListProfilePermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_revisionId; int m_policySizeBytes; Aws::Vector m_permissions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace signer } // namespace Aws