AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateRecommendationsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/DiscoveryResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataSync
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 "GenerateRecommendations"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetDiscoveryJobArn() const{ return m_discoveryJobArn; }
45 inline bool DiscoveryJobArnHasBeenSet() const { return m_discoveryJobArnHasBeenSet; }
46 inline void SetDiscoveryJobArn(const Aws::String& value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn = value; }
47 inline void SetDiscoveryJobArn(Aws::String&& value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn = std::move(value); }
48 inline void SetDiscoveryJobArn(const char* value) { m_discoveryJobArnHasBeenSet = true; m_discoveryJobArn.assign(value); }
50 inline GenerateRecommendationsRequest& WithDiscoveryJobArn(Aws::String&& value) { SetDiscoveryJobArn(std::move(value)); return *this;}
51 inline GenerateRecommendationsRequest& WithDiscoveryJobArn(const char* value) { SetDiscoveryJobArn(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
60 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
61 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
62 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
65 inline GenerateRecommendationsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
66 inline GenerateRecommendationsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
67 inline GenerateRecommendationsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
69
71
75 inline const DiscoveryResourceType& GetResourceType() const{ return m_resourceType; }
76 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
77 inline void SetResourceType(const DiscoveryResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
78 inline void SetResourceType(DiscoveryResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
80 inline GenerateRecommendationsRequest& WithResourceType(DiscoveryResourceType&& value) { SetResourceType(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_discoveryJobArn;
85 bool m_discoveryJobArnHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_resourceIds;
88 bool m_resourceIdsHasBeenSet = false;
89
90 DiscoveryResourceType m_resourceType;
91 bool m_resourceTypeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace DataSync
96} // namespace Aws
GenerateRecommendationsRequest & WithDiscoveryJobArn(Aws::String &&value)
void SetResourceIds(const Aws::Vector< Aws::String > &value)
GenerateRecommendationsRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
GenerateRecommendationsRequest & AddResourceIds(Aws::String &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
GenerateRecommendationsRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
GenerateRecommendationsRequest & WithDiscoveryJobArn(const Aws::String &value)
GenerateRecommendationsRequest & AddResourceIds(const Aws::String &value)
GenerateRecommendationsRequest & WithResourceType(DiscoveryResourceType &&value)
GenerateRecommendationsRequest & WithResourceType(const DiscoveryResourceType &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateRecommendationsRequest & AddResourceIds(const char *value)
GenerateRecommendationsRequest & WithDiscoveryJobArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector