AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetApplianceSizingRecommendationRequest.h
1
6#pragma once
7#include <aws/backup-external/BackupExternalRequest.h>
8#include <aws/backup-external/BackupExternal_EXPORTS.h>
9#include <aws/backup-external/model/SizingNodeType.h>
10#include <aws/backup-external/model/SizingWorkload.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BackupExternal {
17namespace Model {
18
22 public:
23 AWS_BACKUPEXTERNAL_API GetApplianceSizingRecommendationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetApplianceSizingRecommendation"; }
30
31 AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<SizingWorkload>& GetWorkloads() const { return m_workloads; }
38 inline bool WorkloadsHasBeenSet() const { return m_workloadsHasBeenSet; }
39 template <typename WorkloadsT = Aws::Vector<SizingWorkload>>
40 void SetWorkloads(WorkloadsT&& value) {
41 m_workloadsHasBeenSet = true;
42 m_workloads = std::forward<WorkloadsT>(value);
43 }
44 template <typename WorkloadsT = Aws::Vector<SizingWorkload>>
46 SetWorkloads(std::forward<WorkloadsT>(value));
47 return *this;
48 }
49 template <typename WorkloadsT = SizingWorkload>
51 m_workloadsHasBeenSet = true;
52 m_workloads.emplace_back(std::forward<WorkloadsT>(value));
53 return *this;
54 }
56
58
61 inline int GetProjectionYears() const { return m_projectionYears; }
62 inline bool ProjectionYearsHasBeenSet() const { return m_projectionYearsHasBeenSet; }
63 inline void SetProjectionYears(int value) {
64 m_projectionYearsHasBeenSet = true;
65 m_projectionYears = value;
66 }
68 SetProjectionYears(value);
69 return *this;
70 }
72
74
77 inline int GetNodeFaultTolerance() const { return m_nodeFaultTolerance; }
78 inline bool NodeFaultToleranceHasBeenSet() const { return m_nodeFaultToleranceHasBeenSet; }
79 inline void SetNodeFaultTolerance(int value) {
80 m_nodeFaultToleranceHasBeenSet = true;
81 m_nodeFaultTolerance = value;
82 }
85 return *this;
86 }
88
90
93 inline SizingNodeType GetNodeType() const { return m_nodeType; }
94 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
95 inline void SetNodeType(SizingNodeType value) {
96 m_nodeTypeHasBeenSet = true;
97 m_nodeType = value;
98 }
100 SetNodeType(value);
101 return *this;
102 }
104 private:
105 Aws::Vector<SizingWorkload> m_workloads;
106
107 int m_projectionYears{0};
108
109 int m_nodeFaultTolerance{0};
110
112 bool m_workloadsHasBeenSet = false;
113 bool m_projectionYearsHasBeenSet = false;
114 bool m_nodeFaultToleranceHasBeenSet = false;
115 bool m_nodeTypeHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace BackupExternal
120} // namespace Aws
AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override
GetApplianceSizingRecommendationRequest & AddWorkloads(WorkloadsT &&value)
GetApplianceSizingRecommendationRequest & WithWorkloads(WorkloadsT &&value)
AWS_BACKUPEXTERNAL_API GetApplianceSizingRecommendationRequest()=default
GetApplianceSizingRecommendationRequest & WithNodeType(SizingNodeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector