AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchAssociateProjectAssetsRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace 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_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetProjectId() const{ return m_projectId; }
42 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
43 inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
44 inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
45 inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
46 inline BatchAssociateProjectAssetsRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
47 inline BatchAssociateProjectAssetsRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
48 inline BatchAssociateProjectAssetsRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetAssetIds() const{ return m_assetIds; }
56 inline bool AssetIdsHasBeenSet() const { return m_assetIdsHasBeenSet; }
57 inline void SetAssetIds(const Aws::Vector<Aws::String>& value) { m_assetIdsHasBeenSet = true; m_assetIds = value; }
58 inline void SetAssetIds(Aws::Vector<Aws::String>&& value) { m_assetIdsHasBeenSet = true; m_assetIds = std::move(value); }
60 inline BatchAssociateProjectAssetsRequest& WithAssetIds(Aws::Vector<Aws::String>&& value) { SetAssetIds(std::move(value)); return *this;}
61 inline BatchAssociateProjectAssetsRequest& AddAssetIds(const Aws::String& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(value); return *this; }
62 inline BatchAssociateProjectAssetsRequest& AddAssetIds(Aws::String&& value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(std::move(value)); return *this; }
63 inline BatchAssociateProjectAssetsRequest& AddAssetIds(const char* value) { m_assetIdsHasBeenSet = true; m_assetIds.push_back(value); return *this; }
65
67
72 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
75 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
76 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
78 inline BatchAssociateProjectAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
79 inline BatchAssociateProjectAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
81 private:
82
83 Aws::String m_projectId;
84 bool m_projectIdHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_assetIds;
87 bool m_assetIdsHasBeenSet = false;
88
89 Aws::String m_clientToken;
90 bool m_clientTokenHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace IoTSiteWise
95} // namespace Aws
BatchAssociateProjectAssetsRequest & WithProjectId(const Aws::String &value)
BatchAssociateProjectAssetsRequest & AddAssetIds(Aws::String &&value)
BatchAssociateProjectAssetsRequest & WithClientToken(const Aws::String &value)
BatchAssociateProjectAssetsRequest & WithClientToken(const char *value)
BatchAssociateProjectAssetsRequest & WithAssetIds(const Aws::Vector< Aws::String > &value)
BatchAssociateProjectAssetsRequest & WithProjectId(const char *value)
BatchAssociateProjectAssetsRequest & WithClientToken(Aws::String &&value)
BatchAssociateProjectAssetsRequest & AddAssetIds(const Aws::String &value)
BatchAssociateProjectAssetsRequest & WithProjectId(Aws::String &&value)
BatchAssociateProjectAssetsRequest & WithAssetIds(Aws::Vector< Aws::String > &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
BatchAssociateProjectAssetsRequest & AddAssetIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector