AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RightsizingRecommendation.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/CurrentInstance.h>
10#include <aws/ce/model/RightsizingType.h>
11#include <aws/ce/model/ModifyRecommendationDetail.h>
12#include <aws/ce/model/TerminateRecommendationDetail.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ce/model/FindingReasonCode.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CostExplorer
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_COSTEXPLORER_API RightsizingRecommendation();
43 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAccountId() const{ return m_accountId; }
51 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
52 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
53 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
54 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
55 inline RightsizingRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
56 inline RightsizingRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
57 inline RightsizingRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
59
61
64 inline const CurrentInstance& GetCurrentInstance() const{ return m_currentInstance; }
65 inline bool CurrentInstanceHasBeenSet() const { return m_currentInstanceHasBeenSet; }
66 inline void SetCurrentInstance(const CurrentInstance& value) { m_currentInstanceHasBeenSet = true; m_currentInstance = value; }
67 inline void SetCurrentInstance(CurrentInstance&& value) { m_currentInstanceHasBeenSet = true; m_currentInstance = std::move(value); }
69 inline RightsizingRecommendation& WithCurrentInstance(CurrentInstance&& value) { SetCurrentInstance(std::move(value)); return *this;}
71
73
76 inline const RightsizingType& GetRightsizingType() const{ return m_rightsizingType; }
77 inline bool RightsizingTypeHasBeenSet() const { return m_rightsizingTypeHasBeenSet; }
78 inline void SetRightsizingType(const RightsizingType& value) { m_rightsizingTypeHasBeenSet = true; m_rightsizingType = value; }
79 inline void SetRightsizingType(RightsizingType&& value) { m_rightsizingTypeHasBeenSet = true; m_rightsizingType = std::move(value); }
81 inline RightsizingRecommendation& WithRightsizingType(RightsizingType&& value) { SetRightsizingType(std::move(value)); return *this;}
83
85
88 inline const ModifyRecommendationDetail& GetModifyRecommendationDetail() const{ return m_modifyRecommendationDetail; }
89 inline bool ModifyRecommendationDetailHasBeenSet() const { return m_modifyRecommendationDetailHasBeenSet; }
90 inline void SetModifyRecommendationDetail(const ModifyRecommendationDetail& value) { m_modifyRecommendationDetailHasBeenSet = true; m_modifyRecommendationDetail = value; }
91 inline void SetModifyRecommendationDetail(ModifyRecommendationDetail&& value) { m_modifyRecommendationDetailHasBeenSet = true; m_modifyRecommendationDetail = std::move(value); }
95
97
100 inline const TerminateRecommendationDetail& GetTerminateRecommendationDetail() const{ return m_terminateRecommendationDetail; }
101 inline bool TerminateRecommendationDetailHasBeenSet() const { return m_terminateRecommendationDetailHasBeenSet; }
102 inline void SetTerminateRecommendationDetail(const TerminateRecommendationDetail& value) { m_terminateRecommendationDetailHasBeenSet = true; m_terminateRecommendationDetail = value; }
103 inline void SetTerminateRecommendationDetail(TerminateRecommendationDetail&& value) { m_terminateRecommendationDetailHasBeenSet = true; m_terminateRecommendationDetail = std::move(value); }
107
109
114 inline const Aws::Vector<FindingReasonCode>& GetFindingReasonCodes() const{ return m_findingReasonCodes; }
115 inline bool FindingReasonCodesHasBeenSet() const { return m_findingReasonCodesHasBeenSet; }
116 inline void SetFindingReasonCodes(const Aws::Vector<FindingReasonCode>& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = value; }
117 inline void SetFindingReasonCodes(Aws::Vector<FindingReasonCode>&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = std::move(value); }
120 inline RightsizingRecommendation& AddFindingReasonCodes(const FindingReasonCode& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(value); return *this; }
121 inline RightsizingRecommendation& AddFindingReasonCodes(FindingReasonCode&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_accountId;
126 bool m_accountIdHasBeenSet = false;
127
128 CurrentInstance m_currentInstance;
129 bool m_currentInstanceHasBeenSet = false;
130
131 RightsizingType m_rightsizingType;
132 bool m_rightsizingTypeHasBeenSet = false;
133
134 ModifyRecommendationDetail m_modifyRecommendationDetail;
135 bool m_modifyRecommendationDetailHasBeenSet = false;
136
137 TerminateRecommendationDetail m_terminateRecommendationDetail;
138 bool m_terminateRecommendationDetailHasBeenSet = false;
139
140 Aws::Vector<FindingReasonCode> m_findingReasonCodes;
141 bool m_findingReasonCodesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace CostExplorer
146} // namespace Aws
const ModifyRecommendationDetail & GetModifyRecommendationDetail() const
RightsizingRecommendation & WithAccountId(Aws::String &&value)
void SetFindingReasonCodes(Aws::Vector< FindingReasonCode > &&value)
RightsizingRecommendation & WithAccountId(const char *value)
void SetModifyRecommendationDetail(ModifyRecommendationDetail &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
RightsizingRecommendation & WithTerminateRecommendationDetail(TerminateRecommendationDetail &&value)
RightsizingRecommendation & AddFindingReasonCodes(FindingReasonCode &&value)
RightsizingRecommendation & WithRightsizingType(RightsizingType &&value)
AWS_COSTEXPLORER_API RightsizingRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
RightsizingRecommendation & AddFindingReasonCodes(const FindingReasonCode &value)
void SetTerminateRecommendationDetail(TerminateRecommendationDetail &&value)
const Aws::Vector< FindingReasonCode > & GetFindingReasonCodes() const
RightsizingRecommendation & WithRightsizingType(const RightsizingType &value)
RightsizingRecommendation & WithFindingReasonCodes(const Aws::Vector< FindingReasonCode > &value)
const TerminateRecommendationDetail & GetTerminateRecommendationDetail() const
void SetModifyRecommendationDetail(const ModifyRecommendationDetail &value)
RightsizingRecommendation & WithTerminateRecommendationDetail(const TerminateRecommendationDetail &value)
AWS_COSTEXPLORER_API RightsizingRecommendation(Aws::Utils::Json::JsonView jsonValue)
RightsizingRecommendation & WithCurrentInstance(const CurrentInstance &value)
RightsizingRecommendation & WithFindingReasonCodes(Aws::Vector< FindingReasonCode > &&value)
void SetTerminateRecommendationDetail(const TerminateRecommendationDetail &value)
RightsizingRecommendation & WithAccountId(const Aws::String &value)
RightsizingRecommendation & WithModifyRecommendationDetail(ModifyRecommendationDetail &&value)
RightsizingRecommendation & WithModifyRecommendationDetail(const ModifyRecommendationDetail &value)
RightsizingRecommendation & WithCurrentInstance(CurrentInstance &&value)
void SetFindingReasonCodes(const Aws::Vector< FindingReasonCode > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue