AWS SDK for C++  1.9.103
AWS SDK for C++
BatchAssociateProjectAssetsRequest.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 "BatchAssociateProjectAssets"; }
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 BatchAssociateProjectAssetsRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
66 
70  inline BatchAssociateProjectAssetsRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
71 
75  inline BatchAssociateProjectAssetsRequest& 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 BatchAssociateProjectAssetsRequest& WithAssetIds(const Aws::Vector<Aws::String>& value) { SetAssetIds(value); return *this;}
102 
106  inline BatchAssociateProjectAssetsRequest& WithAssetIds(Aws::Vector<Aws::String>&& value) { SetAssetIds(std::move(value)); return *this;}
107 
111  inline BatchAssociateProjectAssetsRequest& AddAssetIds(const Aws::String& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(value); return *this; }
112 
116  inline BatchAssociateProjectAssetsRequest& AddAssetIds(Aws::String&& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(std::move(value)); return *this; }
117 
121  inline BatchAssociateProjectAssetsRequest& 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 BatchAssociateProjectAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
165 
171  inline BatchAssociateProjectAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
172 
178  inline BatchAssociateProjectAssetsRequest& 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::BatchAssociateProjectAssetsRequest::SetProjectId
void SetProjectId(const Aws::String &value)
Definition: BatchAssociateProjectAssetsRequest.h:50
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::ProjectIdHasBeenSet
bool ProjectIdHasBeenSet() const
Definition: BatchAssociateProjectAssetsRequest.h:45
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithClientToken
BatchAssociateProjectAssetsRequest & WithClientToken(const char *value)
Definition: BatchAssociateProjectAssetsRequest.h:178
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest
Definition: BatchAssociateProjectAssetsRequest.h:24
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithProjectId
BatchAssociateProjectAssetsRequest & WithProjectId(const Aws::String &value)
Definition: BatchAssociateProjectAssetsRequest.h:65
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::AddAssetIds
BatchAssociateProjectAssetsRequest & AddAssetIds(Aws::String &&value)
Definition: BatchAssociateProjectAssetsRequest.h:116
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetAssetIds
void SetAssetIds(Aws::Vector< Aws::String > &&value)
Definition: BatchAssociateProjectAssetsRequest.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetProjectId
void SetProjectId(Aws::String &&value)
Definition: BatchAssociateProjectAssetsRequest.h:55
AWSVector.h
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithAssetIds
BatchAssociateProjectAssetsRequest & WithAssetIds(Aws::Vector< Aws::String > &&value)
Definition: BatchAssociateProjectAssetsRequest.h:106
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetClientToken
void SetClientToken(const char *value)
Definition: BatchAssociateProjectAssetsRequest.h:157
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::AssetIdsHasBeenSet
bool AssetIdsHasBeenSet() const
Definition: BatchAssociateProjectAssetsRequest.h:86
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::AddAssetIds
BatchAssociateProjectAssetsRequest & AddAssetIds(const Aws::String &value)
Definition: BatchAssociateProjectAssetsRequest.h:111
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: BatchAssociateProjectAssetsRequest.h:129
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithClientToken
BatchAssociateProjectAssetsRequest & WithClientToken(const Aws::String &value)
Definition: BatchAssociateProjectAssetsRequest.h:164
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::GetProjectId
const Aws::String & GetProjectId() const
Definition: BatchAssociateProjectAssetsRequest.h:40
AWSString.h
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithProjectId
BatchAssociateProjectAssetsRequest & WithProjectId(Aws::String &&value)
Definition: BatchAssociateProjectAssetsRequest.h:70
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetProjectId
void SetProjectId(const char *value)
Definition: BatchAssociateProjectAssetsRequest.h:60
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::AddAssetIds
BatchAssociateProjectAssetsRequest & AddAssetIds(const char *value)
Definition: BatchAssociateProjectAssetsRequest.h:121
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: BatchAssociateProjectAssetsRequest.h:150
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::BatchAssociateProjectAssetsRequest
BatchAssociateProjectAssetsRequest()
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetAssetIds
void SetAssetIds(const Aws::Vector< Aws::String > &value)
Definition: BatchAssociateProjectAssetsRequest.h:91
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: BatchAssociateProjectAssetsRequest.h:143
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: BatchAssociateProjectAssetsRequest.h:136
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::GetAssetIds
const Aws::Vector< Aws::String > & GetAssetIds() const
Definition: BatchAssociateProjectAssetsRequest.h:81
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithAssetIds
BatchAssociateProjectAssetsRequest & WithAssetIds(const Aws::Vector< Aws::String > &value)
Definition: BatchAssociateProjectAssetsRequest.h:101
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
UUID.h
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithProjectId
BatchAssociateProjectAssetsRequest & WithProjectId(const char *value)
Definition: BatchAssociateProjectAssetsRequest.h:75
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::WithClientToken
BatchAssociateProjectAssetsRequest & WithClientToken(Aws::String &&value)
Definition: BatchAssociateProjectAssetsRequest.h:171
Aws::IoTSiteWise::Model::BatchAssociateProjectAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchAssociateProjectAssetsRequest.h:32