/** * 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 OpsWorks { namespace Model { /** *

Contains the response to a DescribePermissions * request.

See Also:

AWS * API Reference

*/ class DescribePermissionsResult { public: AWS_OPSWORKS_API DescribePermissionsResult(); AWS_OPSWORKS_API DescribePermissionsResult(const Aws::AmazonWebServiceResult& result); AWS_OPSWORKS_API DescribePermissionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

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

An array of Permission objects that describe the stack * permissions.

  • If the request object contains only a stack ID, * the array contains a Permission object with permissions for each of * the stack IAM ARNs.

  • If the request object contains only an IAM * ARN, the array contains a Permission object with permissions for * each of the user's stack IDs.

  • If the request contains a stack * ID and an IAM ARN, the array contains a single Permission object * with permissions for the specified stack and IAM ARN.

*/ inline DescribePermissionsResult& AddPermissions(Permission&& value) { m_permissions.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 DescribePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_permissions; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorks } // namespace Aws