AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAssetRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace IoTSiteWise
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTSITEWISE_API UpdateAssetRequest();
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 "UpdateAsset"; }
32
33 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetAssetId() const{ return m_assetId; }
45 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
46 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
47 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
48 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
49 inline UpdateAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
50 inline UpdateAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
51 inline UpdateAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
53
55
58 inline const Aws::String& GetAssetName() const{ return m_assetName; }
59 inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
60 inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
61 inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
62 inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
63 inline UpdateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
64 inline UpdateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
65 inline UpdateAssetRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
67
69
74 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
77 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
78 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
79 inline UpdateAssetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
80 inline UpdateAssetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
81 inline UpdateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
83
85
88 inline const Aws::String& GetAssetDescription() const{ return m_assetDescription; }
89 inline bool AssetDescriptionHasBeenSet() const { return m_assetDescriptionHasBeenSet; }
90 inline void SetAssetDescription(const Aws::String& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = value; }
91 inline void SetAssetDescription(Aws::String&& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = std::move(value); }
92 inline void SetAssetDescription(const char* value) { m_assetDescriptionHasBeenSet = true; m_assetDescription.assign(value); }
93 inline UpdateAssetRequest& WithAssetDescription(const Aws::String& value) { SetAssetDescription(value); return *this;}
94 inline UpdateAssetRequest& WithAssetDescription(Aws::String&& value) { SetAssetDescription(std::move(value)); return *this;}
95 inline UpdateAssetRequest& WithAssetDescription(const char* value) { SetAssetDescription(value); return *this;}
97
99
106 inline const Aws::String& GetAssetExternalId() const{ return m_assetExternalId; }
107 inline bool AssetExternalIdHasBeenSet() const { return m_assetExternalIdHasBeenSet; }
108 inline void SetAssetExternalId(const Aws::String& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = value; }
109 inline void SetAssetExternalId(Aws::String&& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = std::move(value); }
110 inline void SetAssetExternalId(const char* value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId.assign(value); }
111 inline UpdateAssetRequest& WithAssetExternalId(const Aws::String& value) { SetAssetExternalId(value); return *this;}
112 inline UpdateAssetRequest& WithAssetExternalId(Aws::String&& value) { SetAssetExternalId(std::move(value)); return *this;}
113 inline UpdateAssetRequest& WithAssetExternalId(const char* value) { SetAssetExternalId(value); return *this;}
115 private:
116
117 Aws::String m_assetId;
118 bool m_assetIdHasBeenSet = false;
119
120 Aws::String m_assetName;
121 bool m_assetNameHasBeenSet = false;
122
123 Aws::String m_clientToken;
124 bool m_clientTokenHasBeenSet = false;
125
126 Aws::String m_assetDescription;
127 bool m_assetDescriptionHasBeenSet = false;
128
129 Aws::String m_assetExternalId;
130 bool m_assetExternalIdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoTSiteWise
135} // namespace Aws
UpdateAssetRequest & WithClientToken(const char *value)
UpdateAssetRequest & WithAssetId(const char *value)
UpdateAssetRequest & WithAssetId(const Aws::String &value)
UpdateAssetRequest & WithClientToken(const Aws::String &value)
UpdateAssetRequest & WithAssetExternalId(const char *value)
const Aws::String & GetAssetDescription() const
UpdateAssetRequest & WithAssetExternalId(Aws::String &&value)
UpdateAssetRequest & WithAssetExternalId(const Aws::String &value)
void SetAssetId(const Aws::String &value)
UpdateAssetRequest & WithAssetName(Aws::String &&value)
void SetAssetExternalId(const Aws::String &value)
UpdateAssetRequest & WithAssetDescription(Aws::String &&value)
void SetAssetName(const Aws::String &value)
UpdateAssetRequest & WithAssetDescription(const Aws::String &value)
void SetClientToken(const Aws::String &value)
void SetAssetDescription(const Aws::String &value)
UpdateAssetRequest & WithAssetName(const Aws::String &value)
UpdateAssetRequest & WithAssetName(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateAssetRequest & WithAssetDescription(const char *value)
UpdateAssetRequest & WithClientToken(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
UpdateAssetRequest & WithAssetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String