AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeStorageSystemResourcesRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/DiscoveryResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/datasync/model/DiscoveryResourceFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DataSync
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeStorageSystemResources"; }
35
36 AWS_DATASYNC_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetDiscoveryJobArn() const{ return m_discoveryJobArn; }
47 inline bool DiscoveryJobArnHasBeenSet() const { return m_discoveryJobArnHasBeenSet; }
48 inline void SetDiscoveryJobArn(const Aws::String& value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn = value; }
49 inline void SetDiscoveryJobArn(Aws::String&& value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn = std::move(value); }
50 inline void SetDiscoveryJobArn(const char* value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn.assign(value); }
53 inline DescribeStorageSystemResourcesRequest& WithDiscoveryJobArn(const char* value) { SetDiscoveryJobArn(value); return *this;}
55
57
61 inline const DiscoveryResourceType& GetResourceType() const{ return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 inline void SetResourceType(const DiscoveryResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64 inline void SetResourceType(DiscoveryResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
68
70
75 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
76 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
77 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
78 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
81 inline DescribeStorageSystemResourcesRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
82 inline DescribeStorageSystemResourcesRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
83 inline DescribeStorageSystemResourcesRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
85
87
93 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
94 inline void SetFilter(const Aws::Map<DiscoveryResourceFilter, Aws::Vector<Aws::String>>& value) { m_filterHasBeenSet = true; m_filter = value; }
95 inline void SetFilter(Aws::Map<DiscoveryResourceFilter, Aws::Vector<Aws::String>>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
98 inline DescribeStorageSystemResourcesRequest& AddFilter(const DiscoveryResourceFilter& key, const Aws::Vector<Aws::String>& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
99 inline DescribeStorageSystemResourcesRequest& AddFilter(DiscoveryResourceFilter&& key, const Aws::Vector<Aws::String>& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
100 inline DescribeStorageSystemResourcesRequest& AddFilter(const DiscoveryResourceFilter& key, Aws::Vector<Aws::String>&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
101 inline DescribeStorageSystemResourcesRequest& AddFilter(DiscoveryResourceFilter&& key, Aws::Vector<Aws::String>&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
103
105
109 inline int GetMaxResults() const{ return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 inline DescribeStorageSystemResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114
116
120 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
121 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
123 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
124 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
126 inline DescribeStorageSystemResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 inline DescribeStorageSystemResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
129 private:
130
131 Aws::String m_discoveryJobArn;
132 bool m_discoveryJobArnHasBeenSet = false;
133
134 DiscoveryResourceType m_resourceType;
135 bool m_resourceTypeHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_resourceIds;
138 bool m_resourceIdsHasBeenSet = false;
139
141 bool m_filterHasBeenSet = false;
142
143 int m_maxResults;
144 bool m_maxResultsHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace DataSync
152} // namespace Aws
DescribeStorageSystemResourcesRequest & AddFilter(const DiscoveryResourceFilter &key, const Aws::Vector< Aws::String > &value)
void SetFilter(Aws::Map< DiscoveryResourceFilter, Aws::Vector< Aws::String > > &&value)
DescribeStorageSystemResourcesRequest & AddFilter(DiscoveryResourceFilter &&key, Aws::Vector< Aws::String > &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< DiscoveryResourceFilter, Aws::Vector< Aws::String > > & GetFilter() const
DescribeStorageSystemResourcesRequest & AddFilter(DiscoveryResourceFilter &&key, const Aws::Vector< Aws::String > &value)
DescribeStorageSystemResourcesRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
void SetFilter(const Aws::Map< DiscoveryResourceFilter, Aws::Vector< Aws::String > > &value)
DescribeStorageSystemResourcesRequest & AddResourceIds(const Aws::String &value)
DescribeStorageSystemResourcesRequest & WithDiscoveryJobArn(const char *value)
DescribeStorageSystemResourcesRequest & AddFilter(const DiscoveryResourceFilter &key, Aws::Vector< Aws::String > &&value)
DescribeStorageSystemResourcesRequest & WithFilter(const Aws::Map< DiscoveryResourceFilter, Aws::Vector< Aws::String > > &value)
DescribeStorageSystemResourcesRequest & WithDiscoveryJobArn(const Aws::String &value)
DescribeStorageSystemResourcesRequest & WithResourceType(const DiscoveryResourceType &value)
DescribeStorageSystemResourcesRequest & AddResourceIds(Aws::String &&value)
DescribeStorageSystemResourcesRequest & WithNextToken(const Aws::String &value)
DescribeStorageSystemResourcesRequest & WithNextToken(Aws::String &&value)
DescribeStorageSystemResourcesRequest & WithNextToken(const char *value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
DescribeStorageSystemResourcesRequest & WithResourceType(DiscoveryResourceType &&value)
DescribeStorageSystemResourcesRequest & WithFilter(Aws::Map< DiscoveryResourceFilter, Aws::Vector< Aws::String > > &&value)
DescribeStorageSystemResourcesRequest & AddResourceIds(const char *value)
DescribeStorageSystemResourcesRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
DescribeStorageSystemResourcesRequest & WithDiscoveryJobArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector