AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
CreateCustomPermissionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/Capabilities.h>
12#include <aws/quicksight/model/Governance.h>
13#include <aws/quicksight/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateCustomPermissionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomPermissions"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
42 template <typename AwsAccountIdT = Aws::String>
43 void SetAwsAccountId(AwsAccountIdT&& value) {
44 m_awsAccountIdHasBeenSet = true;
45 m_awsAccountId = std::forward<AwsAccountIdT>(value);
46 }
47 template <typename AwsAccountIdT = Aws::String>
49 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCustomPermissionsName() const { return m_customPermissionsName; }
59 inline bool CustomPermissionsNameHasBeenSet() const { return m_customPermissionsNameHasBeenSet; }
60 template <typename CustomPermissionsNameT = Aws::String>
61 void SetCustomPermissionsName(CustomPermissionsNameT&& value) {
62 m_customPermissionsNameHasBeenSet = true;
63 m_customPermissionsName = std::forward<CustomPermissionsNameT>(value);
64 }
65 template <typename CustomPermissionsNameT = Aws::String>
67 SetCustomPermissionsName(std::forward<CustomPermissionsNameT>(value));
68 return *this;
69 }
71
73
76 inline const Capabilities& GetCapabilities() const { return m_capabilities; }
77 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
78 template <typename CapabilitiesT = Capabilities>
79 void SetCapabilities(CapabilitiesT&& value) {
80 m_capabilitiesHasBeenSet = true;
81 m_capabilities = std::forward<CapabilitiesT>(value);
82 }
83 template <typename CapabilitiesT = Capabilities>
85 SetCapabilities(std::forward<CapabilitiesT>(value));
86 return *this;
87 }
89
91
98 inline const Governance& GetGovernance() const { return m_governance; }
99 inline bool GovernanceHasBeenSet() const { return m_governanceHasBeenSet; }
100 template <typename GovernanceT = Governance>
101 void SetGovernance(GovernanceT&& value) {
102 m_governanceHasBeenSet = true;
103 m_governance = std::forward<GovernanceT>(value);
104 }
105 template <typename GovernanceT = Governance>
107 SetGovernance(std::forward<GovernanceT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Vector<Tag>>
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsT = Tag>
130 m_tagsHasBeenSet = true;
131 m_tags.emplace_back(std::forward<TagsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_awsAccountId;
137
138 Aws::String m_customPermissionsName;
139
140 Capabilities m_capabilities;
141
142 Governance m_governance;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_awsAccountIdHasBeenSet = false;
146 bool m_customPermissionsNameHasBeenSet = false;
147 bool m_capabilitiesHasBeenSet = false;
148 bool m_governanceHasBeenSet = false;
149 bool m_tagsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace QuickSight
154} // namespace Aws
CreateCustomPermissionsRequest & WithCapabilities(CapabilitiesT &&value)
AWS_QUICKSIGHT_API CreateCustomPermissionsRequest()=default
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateCustomPermissionsRequest & WithTags(TagsT &&value)
CreateCustomPermissionsRequest & AddTags(TagsT &&value)
CreateCustomPermissionsRequest & WithGovernance(GovernanceT &&value)
CreateCustomPermissionsRequest & WithCustomPermissionsName(CustomPermissionsNameT &&value)
CreateCustomPermissionsRequest & WithAwsAccountId(AwsAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector