AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
56 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
59 inline ExportLicenseRecommendationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
60 inline ExportLicenseRecommendationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
61 inline ExportLicenseRecommendationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
63
65
69 inline const Aws::Vector<LicenseRecommendationFilter>& GetFilters() const{ return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 inline void SetFilters(const Aws::Vector<LicenseRecommendationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
72 inline void SetFilters(Aws::Vector<LicenseRecommendationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
75 inline ExportLicenseRecommendationsRequest& AddFilters(const LicenseRecommendationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
76 inline ExportLicenseRecommendationsRequest& AddFilters(LicenseRecommendationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
78
80
86 inline const Aws::Vector<ExportableLicenseField>& GetFieldsToExport() const{ return m_fieldsToExport; }
87 inline bool FieldsToExportHasBeenSet() const { return m_fieldsToExportHasBeenSet; }
88 inline void SetFieldsToExport(const Aws::Vector<ExportableLicenseField>& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport = value; }
89 inline void SetFieldsToExport(Aws::Vector<ExportableLicenseField>&& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport = std::move(value); }
92 inline ExportLicenseRecommendationsRequest& AddFieldsToExport(const ExportableLicenseField& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport.push_back(value); return *this; }
93 inline ExportLicenseRecommendationsRequest& AddFieldsToExport(ExportableLicenseField&& value) { m_fieldsToExportHasBeenSet = true; m_fieldsToExport.push_back(std::move(value)); return *this; }
95
97
98 inline const S3DestinationConfig& GetS3DestinationConfig() const{ return m_s3DestinationConfig; }
99 inline bool S3DestinationConfigHasBeenSet() const { return m_s3DestinationConfigHasBeenSet; }
100 inline void SetS3DestinationConfig(const S3DestinationConfig& value) { m_s3DestinationConfigHasBeenSet = true; m_s3DestinationConfig = value; }
101 inline void SetS3DestinationConfig(S3DestinationConfig&& value) { m_s3DestinationConfigHasBeenSet = true; m_s3DestinationConfig = std::move(value); }
105
107
111 inline const FileFormat& GetFileFormat() const{ return m_fileFormat; }
112 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
113 inline void SetFileFormat(const FileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
114 inline void SetFileFormat(FileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); }
115 inline ExportLicenseRecommendationsRequest& WithFileFormat(const FileFormat& value) { SetFileFormat(value); return *this;}
116 inline ExportLicenseRecommendationsRequest& WithFileFormat(FileFormat&& value) { SetFileFormat(std::move(value)); return *this;}
118
120
133 inline bool GetIncludeMemberAccounts() const{ return m_includeMemberAccounts; }
134 inline bool IncludeMemberAccountsHasBeenSet() const { return m_includeMemberAccountsHasBeenSet; }
135 inline void SetIncludeMemberAccounts(bool value) { m_includeMemberAccountsHasBeenSet = true; m_includeMemberAccounts = value; }
138 private:
139
140 Aws::Vector<Aws::String> m_accountIds;
141 bool m_accountIdsHasBeenSet = false;
142
144 bool m_filtersHasBeenSet = false;
145
147 bool m_fieldsToExportHasBeenSet = false;
148
149 S3DestinationConfig m_s3DestinationConfig;
150 bool m_s3DestinationConfigHasBeenSet = false;
151
152 FileFormat m_fileFormat;
153 bool m_fileFormatHasBeenSet = false;
154
155 bool m_includeMemberAccounts;
156 bool m_includeMemberAccountsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace ComputeOptimizer
161} // namespace Aws
ExportLicenseRecommendationsRequest & WithFieldsToExport(const Aws::Vector< ExportableLicenseField > &value)
ExportLicenseRecommendationsRequest & AddFilters(const LicenseRecommendationFilter &value)
ExportLicenseRecommendationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
ExportLicenseRecommendationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
ExportLicenseRecommendationsRequest & AddAccountIds(Aws::String &&value)
ExportLicenseRecommendationsRequest & WithS3DestinationConfig(const S3DestinationConfig &value)
const Aws::Vector< LicenseRecommendationFilter > & GetFilters() const
ExportLicenseRecommendationsRequest & WithFilters(Aws::Vector< LicenseRecommendationFilter > &&value)
ExportLicenseRecommendationsRequest & WithFilters(const Aws::Vector< LicenseRecommendationFilter > &value)
ExportLicenseRecommendationsRequest & WithFileFormat(FileFormat &&value)
ExportLicenseRecommendationsRequest & WithFieldsToExport(Aws::Vector< ExportableLicenseField > &&value)
ExportLicenseRecommendationsRequest & AddFieldsToExport(ExportableLicenseField &&value)
ExportLicenseRecommendationsRequest & AddFieldsToExport(const ExportableLicenseField &value)
void SetFilters(Aws::Vector< LicenseRecommendationFilter > &&value)
ExportLicenseRecommendationsRequest & WithFileFormat(const FileFormat &value)
void SetFieldsToExport(const Aws::Vector< ExportableLicenseField > &value)
ExportLicenseRecommendationsRequest & AddAccountIds(const Aws::String &value)
ExportLicenseRecommendationsRequest & AddAccountIds(const char *value)
AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ExportLicenseRecommendationsRequest & AddFilters(LicenseRecommendationFilter &&value)
AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override
ExportLicenseRecommendationsRequest & WithS3DestinationConfig(S3DestinationConfig &&value)
void SetFilters(const Aws::Vector< LicenseRecommendationFilter > &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