1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/quicksight/QuickSight_EXPORTS.h> 8 #include <aws/quicksight/QuickSightRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace QuickSight 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_QUICKSIGHT_API DescribeDashboardPermissionsRequest : public QuickSightRequest 22 { 23 public: 24 DescribeDashboardPermissionsRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "DescribeDashboardPermissions"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The ID of the Amazon Web Services account that contains the dashboard that 37 * you're describing permissions for.</p> 38 */ GetAwsAccountId()39 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } 40 41 /** 42 * <p>The ID of the Amazon Web Services account that contains the dashboard that 43 * you're describing permissions for.</p> 44 */ AwsAccountIdHasBeenSet()45 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } 46 47 /** 48 * <p>The ID of the Amazon Web Services account that contains the dashboard that 49 * you're describing permissions for.</p> 50 */ SetAwsAccountId(const Aws::String & value)51 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } 52 53 /** 54 * <p>The ID of the Amazon Web Services account that contains the dashboard that 55 * you're describing permissions for.</p> 56 */ SetAwsAccountId(Aws::String && value)57 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } 58 59 /** 60 * <p>The ID of the Amazon Web Services account that contains the dashboard that 61 * you're describing permissions for.</p> 62 */ SetAwsAccountId(const char * value)63 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } 64 65 /** 66 * <p>The ID of the Amazon Web Services account that contains the dashboard that 67 * you're describing permissions for.</p> 68 */ WithAwsAccountId(const Aws::String & value)69 inline DescribeDashboardPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} 70 71 /** 72 * <p>The ID of the Amazon Web Services account that contains the dashboard that 73 * you're describing permissions for.</p> 74 */ WithAwsAccountId(Aws::String && value)75 inline DescribeDashboardPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} 76 77 /** 78 * <p>The ID of the Amazon Web Services account that contains the dashboard that 79 * you're describing permissions for.</p> 80 */ WithAwsAccountId(const char * value)81 inline DescribeDashboardPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} 82 83 84 /** 85 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 86 */ GetDashboardId()87 inline const Aws::String& GetDashboardId() const{ return m_dashboardId; } 88 89 /** 90 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 91 */ DashboardIdHasBeenSet()92 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; } 93 94 /** 95 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 96 */ SetDashboardId(const Aws::String & value)97 inline void SetDashboardId(const Aws::String& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = value; } 98 99 /** 100 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 101 */ SetDashboardId(Aws::String && value)102 inline void SetDashboardId(Aws::String&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::move(value); } 103 104 /** 105 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 106 */ SetDashboardId(const char * value)107 inline void SetDashboardId(const char* value) { m_dashboardIdHasBeenSet = true; m_dashboardId.assign(value); } 108 109 /** 110 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 111 */ WithDashboardId(const Aws::String & value)112 inline DescribeDashboardPermissionsRequest& WithDashboardId(const Aws::String& value) { SetDashboardId(value); return *this;} 113 114 /** 115 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 116 */ WithDashboardId(Aws::String && value)117 inline DescribeDashboardPermissionsRequest& WithDashboardId(Aws::String&& value) { SetDashboardId(std::move(value)); return *this;} 118 119 /** 120 * <p>The ID for the dashboard, also added to the IAMpolicy.</p> 121 */ WithDashboardId(const char * value)122 inline DescribeDashboardPermissionsRequest& WithDashboardId(const char* value) { SetDashboardId(value); return *this;} 123 124 private: 125 126 Aws::String m_awsAccountId; 127 bool m_awsAccountIdHasBeenSet; 128 129 Aws::String m_dashboardId; 130 bool m_dashboardIdHasBeenSet; 131 }; 132 133 } // namespace Model 134 } // namespace QuickSight 135 } // namespace Aws 136