@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExportEC2InstanceRecommendationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ExportEC2InstanceRecommendationsRequest() |
Modifier and Type | Method and Description |
---|---|
ExportEC2InstanceRecommendationsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAccountIds()
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
|
List<String> |
getFieldsToExport()
The recommendations data to include in the export file.
|
String |
getFileFormat()
The format of the export file.
|
List<Filter> |
getFilters()
An array of objects to specify a filter that exports a more specific set of instance recommendations.
|
Boolean |
getIncludeMemberAccounts()
Indicates whether to include recommendations for resources in all member accounts of the organization if your
account is the management account of an organization.
|
RecommendationPreferences |
getRecommendationPreferences()
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
|
S3DestinationConfig |
getS3DestinationConfig()
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the
export job.
|
int |
hashCode() |
Boolean |
isIncludeMemberAccounts()
Indicates whether to include recommendations for resources in all member accounts of the organization if your
account is the management account of an organization.
|
void |
setAccountIds(Collection<String> accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
|
void |
setFieldsToExport(Collection<String> fieldsToExport)
The recommendations data to include in the export file.
|
void |
setFileFormat(String fileFormat)
The format of the export file.
|
void |
setFilters(Collection<Filter> filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
|
void |
setIncludeMemberAccounts(Boolean includeMemberAccounts)
Indicates whether to include recommendations for resources in all member accounts of the organization if your
account is the management account of an organization.
|
void |
setRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
|
void |
setS3DestinationConfig(S3DestinationConfig s3DestinationConfig)
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the
export job.
|
String |
toString()
Returns a string representation of this object.
|
ExportEC2InstanceRecommendationsRequest |
withAccountIds(Collection<String> accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
|
ExportEC2InstanceRecommendationsRequest |
withAccountIds(String... accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
|
ExportEC2InstanceRecommendationsRequest |
withFieldsToExport(Collection<String> fieldsToExport)
The recommendations data to include in the export file.
|
ExportEC2InstanceRecommendationsRequest |
withFieldsToExport(ExportableInstanceField... fieldsToExport)
The recommendations data to include in the export file.
|
ExportEC2InstanceRecommendationsRequest |
withFieldsToExport(String... fieldsToExport)
The recommendations data to include in the export file.
|
ExportEC2InstanceRecommendationsRequest |
withFileFormat(FileFormat fileFormat)
The format of the export file.
|
ExportEC2InstanceRecommendationsRequest |
withFileFormat(String fileFormat)
The format of the export file.
|
ExportEC2InstanceRecommendationsRequest |
withFilters(Collection<Filter> filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
|
ExportEC2InstanceRecommendationsRequest |
withFilters(Filter... filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
|
ExportEC2InstanceRecommendationsRequest |
withIncludeMemberAccounts(Boolean includeMemberAccounts)
Indicates whether to include recommendations for resources in all member accounts of the organization if your
account is the management account of an organization.
|
ExportEC2InstanceRecommendationsRequest |
withRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
|
ExportEC2InstanceRecommendationsRequest |
withS3DestinationConfig(S3DestinationConfig s3DestinationConfig)
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the
export job.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ExportEC2InstanceRecommendationsRequest()
public List<String> getAccountIds()
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
public void setAccountIds(Collection<String> accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
accountIds
- The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
public ExportEC2InstanceRecommendationsRequest withAccountIds(String... accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
NOTE: This method appends the values to the existing list (if any). Use
setAccountIds(java.util.Collection)
or withAccountIds(java.util.Collection)
if you want to
override the existing values.
accountIds
- The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
public ExportEC2InstanceRecommendationsRequest withAccountIds(Collection<String> accountIds)
The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
accountIds
- The IDs of the Amazon Web Services accounts for which to export instance recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
public List<Filter> getFilters()
An array of objects to specify a filter that exports a more specific set of instance recommendations.
public void setFilters(Collection<Filter> filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
filters
- An array of objects to specify a filter that exports a more specific set of instance recommendations.public ExportEC2InstanceRecommendationsRequest withFilters(Filter... filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
or withFilters(java.util.Collection)
if you want to override
the existing values.
filters
- An array of objects to specify a filter that exports a more specific set of instance recommendations.public ExportEC2InstanceRecommendationsRequest withFilters(Collection<Filter> filters)
An array of objects to specify a filter that exports a more specific set of instance recommendations.
filters
- An array of objects to specify a filter that exports a more specific set of instance recommendations.public List<String> getFieldsToExport()
The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
ExportableInstanceField
public void setFieldsToExport(Collection<String> fieldsToExport)
The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
fieldsToExport
- The recommendations data to include in the export file. For more information about the fields that can be
exported, see Exported files in the Compute Optimizer User Guide.ExportableInstanceField
public ExportEC2InstanceRecommendationsRequest withFieldsToExport(String... fieldsToExport)
The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setFieldsToExport(java.util.Collection)
or withFieldsToExport(java.util.Collection)
if you want
to override the existing values.
fieldsToExport
- The recommendations data to include in the export file. For more information about the fields that can be
exported, see Exported files in the Compute Optimizer User Guide.ExportableInstanceField
public ExportEC2InstanceRecommendationsRequest withFieldsToExport(Collection<String> fieldsToExport)
The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
fieldsToExport
- The recommendations data to include in the export file. For more information about the fields that can be
exported, see Exported files in the Compute Optimizer User Guide.ExportableInstanceField
public ExportEC2InstanceRecommendationsRequest withFieldsToExport(ExportableInstanceField... fieldsToExport)
The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
fieldsToExport
- The recommendations data to include in the export file. For more information about the fields that can be
exported, see Exported files in the Compute Optimizer User Guide.ExportableInstanceField
public void setS3DestinationConfig(S3DestinationConfig s3DestinationConfig)
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
s3DestinationConfig
- An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix
for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
public S3DestinationConfig getS3DestinationConfig()
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
public ExportEC2InstanceRecommendationsRequest withS3DestinationConfig(S3DestinationConfig s3DestinationConfig)
An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
s3DestinationConfig
- An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix
for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.
public void setFileFormat(String fileFormat)
The format of the export file.
The only export file format currently supported is Csv
.
fileFormat
- The format of the export file.
The only export file format currently supported is Csv
.
FileFormat
public String getFileFormat()
The format of the export file.
The only export file format currently supported is Csv
.
The only export file format currently supported is Csv
.
FileFormat
public ExportEC2InstanceRecommendationsRequest withFileFormat(String fileFormat)
The format of the export file.
The only export file format currently supported is Csv
.
fileFormat
- The format of the export file.
The only export file format currently supported is Csv
.
FileFormat
public ExportEC2InstanceRecommendationsRequest withFileFormat(FileFormat fileFormat)
The format of the export file.
The only export file format currently supported is Csv
.
fileFormat
- The format of the export file.
The only export file format currently supported is Csv
.
FileFormat
public void setIncludeMemberAccounts(Boolean includeMemberAccounts)
Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
includeMemberAccounts
- Indicates whether to include recommendations for resources in all member accounts of the organization if
your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
public Boolean getIncludeMemberAccounts()
Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
public ExportEC2InstanceRecommendationsRequest withIncludeMemberAccounts(Boolean includeMemberAccounts)
Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
includeMemberAccounts
- Indicates whether to include recommendations for resources in all member accounts of the organization if
your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
public Boolean isIncludeMemberAccounts()
Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
public void setRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
recommendationPreferences
- An object to specify the preferences for the Amazon EC2 instance recommendations to export.public RecommendationPreferences getRecommendationPreferences()
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
public ExportEC2InstanceRecommendationsRequest withRecommendationPreferences(RecommendationPreferences recommendationPreferences)
An object to specify the preferences for the Amazon EC2 instance recommendations to export.
recommendationPreferences
- An object to specify the preferences for the Amazon EC2 instance recommendations to export.public String toString()
toString
in class Object
Object.toString()
public ExportEC2InstanceRecommendationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()