AWS SDK for C++  1.9.123
AWS SDK for C++
BatchDisassociateProjectAssetsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace IoTSiteWise
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "BatchDisassociateProjectAssets"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetProjectId() const{ return m_projectId; }
41 
45  inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
46 
50  inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
51 
55  inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
56 
60  inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
61 
65  inline BatchDisassociateProjectAssetsRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
66 
70  inline BatchDisassociateProjectAssetsRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
71 
75  inline BatchDisassociateProjectAssetsRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
76 
77 
81  inline const Aws::Vector<Aws::String>& GetAssetIds() const{ return m_assetIds; }
82 
86  inline bool AssetIdsHasBeenSet() const { return m_assetIdsHasBeenSet; }
87 
91  inline void SetAssetIds(const Aws::Vector<Aws::String>& value) { m_assetIdsHasBeenSet = true; m_assetIds = value; }
92 
96  inline void SetAssetIds(Aws::Vector<Aws::String>&& value) { m_assetIdsHasBeenSet = true; m_assetIds = std::move(value); }
97 
101  inline BatchDisassociateProjectAssetsRequest& WithAssetIds(const Aws::Vector<Aws::String>& value) { SetAssetIds(value); return *this;}
102 
106  inline BatchDisassociateProjectAssetsRequest& WithAssetIds(Aws::Vector<Aws::String>&& value) { SetAssetIds(std::move(value)); return *this;}
107 
111  inline BatchDisassociateProjectAssetsRequest& AddAssetIds(const Aws::String& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(value); return *this; }
112 
116  inline BatchDisassociateProjectAssetsRequest& AddAssetIds(Aws::String&& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(std::move(value)); return *this; }
117 
121  inline BatchDisassociateProjectAssetsRequest& AddAssetIds(const char* value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(value); return *this; }
122 
123 
129  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
130 
136  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
137 
143  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
144 
150  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
151 
157  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
158 
164  inline BatchDisassociateProjectAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
165 
171  inline BatchDisassociateProjectAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
172 
178  inline BatchDisassociateProjectAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
179 
180  private:
181 
182  Aws::String m_projectId;
183  bool m_projectIdHasBeenSet;
184 
185  Aws::Vector<Aws::String> m_assetIds;
186  bool m_assetIdsHasBeenSet;
187 
188  Aws::String m_clientToken;
189  bool m_clientTokenHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace IoTSiteWise
194 } // namespace Aws
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithAssetIds
BatchDisassociateProjectAssetsRequest & WithAssetIds(Aws::Vector< Aws::String > &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:106
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithClientToken
BatchDisassociateProjectAssetsRequest & WithClientToken(const char *value)
Definition: BatchDisassociateProjectAssetsRequest.h:178
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetAssetIds
void SetAssetIds(const Aws::Vector< Aws::String > &value)
Definition: BatchDisassociateProjectAssetsRequest.h:91
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: BatchDisassociateProjectAssetsRequest.h:129
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::AddAssetIds
BatchDisassociateProjectAssetsRequest & AddAssetIds(const char *value)
Definition: BatchDisassociateProjectAssetsRequest.h:121
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: BatchDisassociateProjectAssetsRequest.h:143
AWSVector.h
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchDisassociateProjectAssetsRequest.h:32
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::GetProjectId
const Aws::String & GetProjectId() const
Definition: BatchDisassociateProjectAssetsRequest.h:40
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithClientToken
BatchDisassociateProjectAssetsRequest & WithClientToken(const Aws::String &value)
Definition: BatchDisassociateProjectAssetsRequest.h:164
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithProjectId
BatchDisassociateProjectAssetsRequest & WithProjectId(Aws::String &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:70
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithProjectId
BatchDisassociateProjectAssetsRequest & WithProjectId(const char *value)
Definition: BatchDisassociateProjectAssetsRequest.h:75
AWSString.h
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetAssetIds
void SetAssetIds(Aws::Vector< Aws::String > &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:96
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:150
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::AddAssetIds
BatchDisassociateProjectAssetsRequest & AddAssetIds(Aws::String &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:116
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest
Definition: BatchDisassociateProjectAssetsRequest.h:24
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::GetAssetIds
const Aws::Vector< Aws::String > & GetAssetIds() const
Definition: BatchDisassociateProjectAssetsRequest.h:81
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::BatchDisassociateProjectAssetsRequest
BatchDisassociateProjectAssetsRequest()
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::AssetIdsHasBeenSet
bool AssetIdsHasBeenSet() const
Definition: BatchDisassociateProjectAssetsRequest.h:86
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetProjectId
void SetProjectId(const char *value)
Definition: BatchDisassociateProjectAssetsRequest.h:60
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithProjectId
BatchDisassociateProjectAssetsRequest & WithProjectId(const Aws::String &value)
Definition: BatchDisassociateProjectAssetsRequest.h:65
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: BatchDisassociateProjectAssetsRequest.h:136
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithClientToken
BatchDisassociateProjectAssetsRequest & WithClientToken(Aws::String &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetProjectId
void SetProjectId(Aws::String &&value)
Definition: BatchDisassociateProjectAssetsRequest.h:55
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetClientToken
void SetClientToken(const char *value)
Definition: BatchDisassociateProjectAssetsRequest.h:157
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::WithAssetIds
BatchDisassociateProjectAssetsRequest & WithAssetIds(const Aws::Vector< Aws::String > &value)
Definition: BatchDisassociateProjectAssetsRequest.h:101
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::SetProjectId
void SetProjectId(const Aws::String &value)
Definition: BatchDisassociateProjectAssetsRequest.h:50
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::AddAssetIds
BatchDisassociateProjectAssetsRequest & AddAssetIds(const Aws::String &value)
Definition: BatchDisassociateProjectAssetsRequest.h:111
UUID.h
Aws::IoTSiteWise::Model::BatchDisassociateProjectAssetsRequest::ProjectIdHasBeenSet
bool ProjectIdHasBeenSet() const
Definition: BatchDisassociateProjectAssetsRequest.h:45