AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAssetModelsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iotsitewise/model/AssetModelType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoTSiteWise
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTSITEWISE_API ListAssetModelsRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListAssetModels"; }
37
38 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
39
40 AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
53 inline const Aws::Vector<AssetModelType>& GetAssetModelTypes() const{ return m_assetModelTypes; }
54 inline bool AssetModelTypesHasBeenSet() const { return m_assetModelTypesHasBeenSet; }
55 inline void SetAssetModelTypes(const Aws::Vector<AssetModelType>& value) { m_assetModelTypesHasBeenSet = true; m_assetModelTypes = value; }
56 inline void SetAssetModelTypes(Aws::Vector<AssetModelType>&& value) { m_assetModelTypesHasBeenSet = true; m_assetModelTypes = std::move(value); }
59 inline ListAssetModelsRequest& AddAssetModelTypes(const AssetModelType& value) { m_assetModelTypesHasBeenSet = true; m_assetModelTypes.push_back(value); return *this; }
60 inline ListAssetModelsRequest& AddAssetModelTypes(AssetModelType&& value) { m_assetModelTypesHasBeenSet = true; m_assetModelTypes.push_back(std::move(value)); return *this; }
62
64
67 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
70 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
71 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
72 inline ListAssetModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 inline ListAssetModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
74 inline ListAssetModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76
78
82 inline int GetMaxResults() const{ return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline ListAssetModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
96 inline const Aws::String& GetAssetModelVersion() const{ return m_assetModelVersion; }
97 inline bool AssetModelVersionHasBeenSet() const { return m_assetModelVersionHasBeenSet; }
98 inline void SetAssetModelVersion(const Aws::String& value) { m_assetModelVersionHasBeenSet = true; m_assetModelVersion = value; }
99 inline void SetAssetModelVersion(Aws::String&& value) { m_assetModelVersionHasBeenSet = true; m_assetModelVersion = std::move(value); }
100 inline void SetAssetModelVersion(const char* value) { m_assetModelVersionHasBeenSet = true; m_assetModelVersion.assign(value); }
102 inline ListAssetModelsRequest& WithAssetModelVersion(Aws::String&& value) { SetAssetModelVersion(std::move(value)); return *this;}
103 inline ListAssetModelsRequest& WithAssetModelVersion(const char* value) { SetAssetModelVersion(value); return *this;}
105 private:
106
107 Aws::Vector<AssetModelType> m_assetModelTypes;
108 bool m_assetModelTypesHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_assetModelVersion;
117 bool m_assetModelVersionHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace IoTSiteWise
122} // namespace Aws
ListAssetModelsRequest & WithNextToken(const char *value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssetModelsRequest & WithAssetModelVersion(const char *value)
ListAssetModelsRequest & WithAssetModelTypes(Aws::Vector< AssetModelType > &&value)
ListAssetModelsRequest & WithAssetModelVersion(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ListAssetModelsRequest & WithAssetModelTypes(const Aws::Vector< AssetModelType > &value)
void SetAssetModelTypes(Aws::Vector< AssetModelType > &&value)
ListAssetModelsRequest & AddAssetModelTypes(AssetModelType &&value)
ListAssetModelsRequest & WithMaxResults(int value)
ListAssetModelsRequest & WithAssetModelVersion(const Aws::String &value)
void SetAssetModelTypes(const Aws::Vector< AssetModelType > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AssetModelType > & GetAssetModelTypes() const
ListAssetModelsRequest & WithNextToken(const Aws::String &value)
ListAssetModelsRequest & WithNextToken(Aws::String &&value)
ListAssetModelsRequest & AddAssetModelTypes(const AssetModelType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector