AWS SDK for C++  1.9.14
AWS SDK for C++
DeleteAssetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoTSiteWise
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DeleteAsset"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetAssetId() const{ return m_assetId; }
46 
50  inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
51 
55  inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
56 
60  inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
61 
65  inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
66 
70  inline DeleteAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
71 
75  inline DeleteAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
76 
80  inline DeleteAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
81 
82 
88  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
89 
95  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 
102  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
103 
109  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
110 
116  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
117 
123  inline DeleteAssetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
124 
130  inline DeleteAssetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
131 
137  inline DeleteAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
138 
139  private:
140 
141  Aws::String m_assetId;
142  bool m_assetIdHasBeenSet;
143 
144  Aws::String m_clientToken;
145  bool m_clientTokenHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace IoTSiteWise
150 } // namespace Aws
Aws::IoTSiteWise::Model::DeleteAssetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: DeleteAssetRequest.h:95
Aws::IoTSiteWise::Model::DeleteAssetRequest
Definition: DeleteAssetRequest.h:27
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: DeleteAssetRequest.h:55
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::DeleteAssetRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: DeleteAssetRequest.h:50
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithAssetId
DeleteAssetRequest & WithAssetId(const Aws::String &value)
Definition: DeleteAssetRequest.h:70
Aws::IoTSiteWise::Model::DeleteAssetRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: DeleteAssetRequest.h:45
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetAssetId
void SetAssetId(const char *value)
Definition: DeleteAssetRequest.h:65
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithAssetId
DeleteAssetRequest & WithAssetId(Aws::String &&value)
Definition: DeleteAssetRequest.h:75
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: DeleteAssetRequest.h:109
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: DeleteAssetRequest.h:116
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithClientToken
DeleteAssetRequest & WithClientToken(const Aws::String &value)
Definition: DeleteAssetRequest.h:123
AWSString.h
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithClientToken
DeleteAssetRequest & WithClientToken(Aws::String &&value)
Definition: DeleteAssetRequest.h:130
Aws::IoTSiteWise::Model::DeleteAssetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteAssetRequest.h:35
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: DeleteAssetRequest.h:60
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithClientToken
DeleteAssetRequest & WithClientToken(const char *value)
Definition: DeleteAssetRequest.h:137
Aws::IoTSiteWise::Model::DeleteAssetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::DeleteAssetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: DeleteAssetRequest.h:102
Aws::IoTSiteWise::Model::DeleteAssetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: DeleteAssetRequest.h:88
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::DeleteAssetRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::DeleteAssetRequest::WithAssetId
DeleteAssetRequest & WithAssetId(const char *value)
Definition: DeleteAssetRequest.h:80
Aws::IoTSiteWise::Model::DeleteAssetRequest::DeleteAssetRequest
DeleteAssetRequest()
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
UUID.h