AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
UpdateSpaceResourcesRequest.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/SpaceResourceOperation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API UpdateSpaceResourcesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSpaceResources"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
38 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
39 template <typename AwsAccountIdT = Aws::String>
40 void SetAwsAccountId(AwsAccountIdT&& value) {
41 m_awsAccountIdHasBeenSet = true;
42 m_awsAccountId = std::forward<AwsAccountIdT>(value);
43 }
44 template <typename AwsAccountIdT = Aws::String>
46 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
56 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
57 template <typename SpaceIdT = Aws::String>
58 void SetSpaceId(SpaceIdT&& value) {
59 m_spaceIdHasBeenSet = true;
60 m_spaceId = std::forward<SpaceIdT>(value);
61 }
62 template <typename SpaceIdT = Aws::String>
64 SetSpaceId(std::forward<SpaceIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<SpaceResourceOperation>& GetAddResources() const { return m_addResources; }
74 inline bool AddResourcesHasBeenSet() const { return m_addResourcesHasBeenSet; }
75 template <typename AddResourcesT = Aws::Vector<SpaceResourceOperation>>
76 void SetAddResources(AddResourcesT&& value) {
77 m_addResourcesHasBeenSet = true;
78 m_addResources = std::forward<AddResourcesT>(value);
79 }
80 template <typename AddResourcesT = Aws::Vector<SpaceResourceOperation>>
82 SetAddResources(std::forward<AddResourcesT>(value));
83 return *this;
84 }
85 template <typename AddResourcesT = SpaceResourceOperation>
87 m_addResourcesHasBeenSet = true;
88 m_addResources.emplace_back(std::forward<AddResourcesT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<SpaceResourceOperation>& GetRemoveResources() const { return m_removeResources; }
98 inline bool RemoveResourcesHasBeenSet() const { return m_removeResourcesHasBeenSet; }
99 template <typename RemoveResourcesT = Aws::Vector<SpaceResourceOperation>>
100 void SetRemoveResources(RemoveResourcesT&& value) {
101 m_removeResourcesHasBeenSet = true;
102 m_removeResources = std::forward<RemoveResourcesT>(value);
103 }
104 template <typename RemoveResourcesT = Aws::Vector<SpaceResourceOperation>>
106 SetRemoveResources(std::forward<RemoveResourcesT>(value));
107 return *this;
108 }
109 template <typename RemoveResourcesT = SpaceResourceOperation>
111 m_removeResourcesHasBeenSet = true;
112 m_removeResources.emplace_back(std::forward<RemoveResourcesT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_awsAccountId;
118
119 Aws::String m_spaceId;
120
122
123 Aws::Vector<SpaceResourceOperation> m_removeResources;
124 bool m_awsAccountIdHasBeenSet = false;
125 bool m_spaceIdHasBeenSet = false;
126 bool m_addResourcesHasBeenSet = false;
127 bool m_removeResourcesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace QuickSight
132} // namespace Aws
const Aws::Vector< SpaceResourceOperation > & GetRemoveResources() const
UpdateSpaceResourcesRequest & WithRemoveResources(RemoveResourcesT &&value)
AWS_QUICKSIGHT_API UpdateSpaceResourcesRequest()=default
UpdateSpaceResourcesRequest & AddRemoveResources(RemoveResourcesT &&value)
UpdateSpaceResourcesRequest & WithSpaceId(SpaceIdT &&value)
UpdateSpaceResourcesRequest & AddAddResources(AddResourcesT &&value)
UpdateSpaceResourcesRequest & WithAddResources(AddResourcesT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
UpdateSpaceResourcesRequest & WithAwsAccountId(AwsAccountIdT &&value)
const Aws::Vector< SpaceResourceOperation > & GetAddResources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector