AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExportLicenseRecommendationsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/ComputeOptimizerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/compute-optimizer/model/S3DestinationConfig.h>
11#include <aws/compute-optimizer/model/FileFormat.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/compute-optimizer/model/LicenseRecommendationFilter.h>
14#include <aws/compute-optimizer/model/ExportableLicenseField.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ComputeOptimizer
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_COMPUTEOPTIMIZER_API ExportLicenseRecommendationsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ExportLicenseRecommendations"; }
36
37 AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override;
38
39 AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
53 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
54 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
55 template<typename AccountIdsT = Aws::Vector<Aws::String>>
56 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
57 template<typename AccountIdsT = Aws::Vector<Aws::String>>
58 ExportLicenseRecommendationsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
59 template<typename AccountIdsT = Aws::String>
60 ExportLicenseRecommendationsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
62
64
68 inline const Aws::Vector<LicenseRecommendationFilter>& GetFilters() const { return m_filters; }
69 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
70 template<typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
71 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
72 template<typename FiltersT = Aws::Vector<LicenseRecommendationFilter>>
73 ExportLicenseRecommendationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
74 template<typename FiltersT = LicenseRecommendationFilter>
75 ExportLicenseRecommendationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
77
79
85 inline const Aws::Vector<ExportableLicenseField>& GetFieldsToExport() const { return m_fieldsToExport; }
86 inline bool FieldsToExportHasBeenSet() const { return m_fieldsToExportHasBeenSet; }
87 template<typename FieldsToExportT = Aws::Vector<ExportableLicenseField>>
88 void SetFieldsToExport(FieldsToExportT&& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport = std::forward<FieldsToExportT>(value); }
89 template<typename FieldsToExportT = Aws::Vector<ExportableLicenseField>>
90 ExportLicenseRecommendationsRequest& WithFieldsToExport(FieldsToExportT&& value) { SetFieldsToExport(std::forward<FieldsToExportT>(value)); return *this;}
91 inline ExportLicenseRecommendationsRequest& AddFieldsToExport(ExportableLicenseField value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport.push_back(value); return *this; }
93
95
96 inline const S3DestinationConfig& GetS3DestinationConfig() const { return m_s3DestinationConfig; }
97 inline bool S3DestinationConfigHasBeenSet() const { return m_s3DestinationConfigHasBeenSet; }
98 template<typename S3DestinationConfigT = S3DestinationConfig>
99 void SetS3DestinationConfig(S3DestinationConfigT&& value) { m_s3DestinationConfigHasBeenSet = true; m_s3DestinationConfig = std::forward<S3DestinationConfigT>(value); }
100 template<typename S3DestinationConfigT = S3DestinationConfig>
101 ExportLicenseRecommendationsRequest& WithS3DestinationConfig(S3DestinationConfigT&& value) { SetS3DestinationConfig(std::forward<S3DestinationConfigT>(value)); return *this;}
103
105
109 inline FileFormat GetFileFormat() const { return m_fileFormat; }
110 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
111 inline void SetFileFormat(FileFormat value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
114
116
129 inline bool GetIncludeMemberAccounts() const { return m_includeMemberAccounts; }
130 inline bool IncludeMemberAccountsHasBeenSet() const { return m_includeMemberAccountsHasBeenSet; }
131 inline void SetIncludeMemberAccounts(bool value) { m_includeMemberAccountsHasBeenSet = true; m_includeMemberAccounts = value; }
134 private:
135
136 Aws::Vector<Aws::String> m_accountIds;
137 bool m_accountIdsHasBeenSet = false;
138
140 bool m_filtersHasBeenSet = false;
141
143 bool m_fieldsToExportHasBeenSet = false;
144
145 S3DestinationConfig m_s3DestinationConfig;
146 bool m_s3DestinationConfigHasBeenSet = false;
147
148 FileFormat m_fileFormat{FileFormat::NOT_SET};
149 bool m_fileFormatHasBeenSet = false;
150
151 bool m_includeMemberAccounts{false};
152 bool m_includeMemberAccountsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ComputeOptimizer
157} // namespace Aws
ExportLicenseRecommendationsRequest & WithAccountIds(AccountIdsT &&value)
const Aws::Vector< LicenseRecommendationFilter > & GetFilters() const
ExportLicenseRecommendationsRequest & WithFieldsToExport(FieldsToExportT &&value)
ExportLicenseRecommendationsRequest & AddFieldsToExport(ExportableLicenseField value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
AWS_COMPUTEOPTIMIZER_API ExportLicenseRecommendationsRequest()=default
ExportLicenseRecommendationsRequest & WithS3DestinationConfig(S3DestinationConfigT &&value)
ExportLicenseRecommendationsRequest & AddAccountIds(AccountIdsT &&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