/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.rds.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateCustomDBEngineVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The database engine to use for your custom engine version (CEV). The only supported value is
* custom-oracle-ee
.
*
* The name of your CEV. The name format is 19.customized_string. For example, a valid CEV name is
* 19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The
* combination of Engine
and EngineVersion
is unique per customer per Region.
*
* The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid
* bucket name is my-custom-installation-files
.
*
* The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket
* name is 123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*
* The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. * For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was * used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. *
*/ private String imageId; /** ** The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for * RDS Custom, but optional for Amazon RDS. *
** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further * action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the * instructions in Creating a * symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different * keys. *
*/ private String kMSKeyId; /** ** An optional description of your CEV. *
*/ private String description; /** ** The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which * they are listed. *
** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the * PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. *
*/ private String manifest; private com.amazonaws.internal.SdkInternalList
* The database engine to use for your custom engine version (CEV). The only supported value is
* custom-oracle-ee
.
*
custom-oracle-ee
.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The database engine to use for your custom engine version (CEV). The only supported value is
* custom-oracle-ee
.
*
custom-oracle-ee
.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The database engine to use for your custom engine version (CEV). The only supported value is
* custom-oracle-ee
.
*
custom-oracle-ee
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCustomDBEngineVersionRequest withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The name of your CEV. The name format is 19.customized_string. For example, a valid CEV name is
* 19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The
* combination of Engine
and EngineVersion
is unique per customer per Region.
*
19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS.
* The combination of Engine
and EngineVersion
is unique per customer per Region.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The name of your CEV. The name format is 19.customized_string. For example, a valid CEV name is
* 19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The
* combination of Engine
and EngineVersion
is unique per customer per Region.
*
19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS.
* The combination of Engine
and EngineVersion
is unique per customer per Region.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The name of your CEV. The name format is 19.customized_string. For example, a valid CEV name is
* 19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The
* combination of Engine
and EngineVersion
is unique per customer per Region.
*
19.my_cev1
. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS.
* The combination of Engine
and EngineVersion
is unique per customer per Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCustomDBEngineVersionRequest withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid
* bucket name is my-custom-installation-files
.
*
my-custom-installation-files
.
*/
public void setDatabaseInstallationFilesS3BucketName(String databaseInstallationFilesS3BucketName) {
this.databaseInstallationFilesS3BucketName = databaseInstallationFilesS3BucketName;
}
/**
*
* The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid
* bucket name is my-custom-installation-files
.
*
my-custom-installation-files
.
*/
public String getDatabaseInstallationFilesS3BucketName() {
return this.databaseInstallationFilesS3BucketName;
}
/**
*
* The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid
* bucket name is my-custom-installation-files
.
*
my-custom-installation-files
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCustomDBEngineVersionRequest withDatabaseInstallationFilesS3BucketName(String databaseInstallationFilesS3BucketName) {
setDatabaseInstallationFilesS3BucketName(databaseInstallationFilesS3BucketName);
return this;
}
/**
*
* The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket
* name is 123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*
123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*/
public void setDatabaseInstallationFilesS3Prefix(String databaseInstallationFilesS3Prefix) {
this.databaseInstallationFilesS3Prefix = databaseInstallationFilesS3Prefix;
}
/**
*
* The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket
* name is 123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*
123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*/
public String getDatabaseInstallationFilesS3Prefix() {
return this.databaseInstallationFilesS3Prefix;
}
/**
*
* The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket
* name is 123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
*
123456789012/cev1
. If this setting isn't specified, no prefix is assumed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCustomDBEngineVersionRequest withDatabaseInstallationFilesS3Prefix(String databaseInstallationFilesS3Prefix) {
setDatabaseInstallationFilesS3Prefix(databaseInstallationFilesS3Prefix);
return this;
}
/**
* * The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. * For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was * used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. *
* * @param imageId * The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a * CEV. For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI * ID that was used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. */ public void setImageId(String imageId) { this.imageId = imageId; } /** ** The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. * For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was * used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. *
* * @return The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create * a CEV. For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an * AMI ID that was used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. */ public String getImageId() { return this.imageId; } /** ** The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. * For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was * used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. *
* * @param imageId * The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a * CEV. For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI * ID that was used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomDBEngineVersionRequest withImageId(String imageId) { setImageId(imageId); return this; } /** ** The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for * RDS Custom, but optional for Amazon RDS. *
** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further * action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the * instructions in Creating a * symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different * keys. *
* * @param kMSKeyId * The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is * required for RDS Custom, but optional for Amazon RDS. ** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No * further action is necessary. If you don't already have a symmetric encryption KMS key in your account, * follow the instructions in * Creating a symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer * Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose * different keys. */ public void setKMSKeyId(String kMSKeyId) { this.kMSKeyId = kMSKeyId; } /** *
* The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for * RDS Custom, but optional for Amazon RDS. *
** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further * action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the * instructions in Creating a * symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different * keys. *
* * @return The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is * required for RDS Custom, but optional for Amazon RDS. ** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No * further action is necessary. If you don't already have a symmetric encryption KMS key in your account, * follow the instructions in * Creating a symmetric encryption KMS key in the Amazon Web Services Key Management Service * Developer Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose * different keys. */ public String getKMSKeyId() { return this.kMSKeyId; } /** *
* The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for * RDS Custom, but optional for Amazon RDS. *
** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further * action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the * instructions in Creating a * symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different * keys. *
* * @param kMSKeyId * The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is * required for RDS Custom, but optional for Amazon RDS. ** If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No * further action is necessary. If you don't already have a symmetric encryption KMS key in your account, * follow the instructions in * Creating a symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer * Guide. *
** You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose * different keys. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomDBEngineVersionRequest withKMSKeyId(String kMSKeyId) { setKMSKeyId(kMSKeyId); return this; } /** *
* An optional description of your CEV. *
* * @param description * An optional description of your CEV. */ public void setDescription(String description) { this.description = description; } /** ** An optional description of your CEV. *
* * @return An optional description of your CEV. */ public String getDescription() { return this.description; } /** ** An optional description of your CEV. *
* * @param description * An optional description of your CEV. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomDBEngineVersionRequest withDescription(String description) { setDescription(description); return this; } /** ** The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which * they are listed. *
** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the * PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. *
* * @param manifest * The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in * which they are listed. ** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after * applying the PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. */ public void setManifest(String manifest) { this.manifest = manifest; } /** *
* The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which * they are listed. *
** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the * PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. *
* * @return The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon * S3. Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the * order in which they are listed. ** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after * applying the PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. */ public String getManifest() { return this.manifest; } /** *
* The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which * they are listed. *
** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the * PSU and RU patches. *
** For more information, see * Creating the CEV manifest in the Amazon RDS User Guide. *
* * @param manifest * The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. * Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in * which they are listed. ** The following JSON fields are valid: *
*
* Version of the CEV manifest. The date is in the format YYYY-MM-DD
.
*
* Ordered list of installation files for the CEV. *
** Ordered list of OPatch installers used for the Oracle DB engine. *
** The PSU and RU patches for this CEV. *
** The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after * applying the PSU and RU patches. *
*
* For more information, see
* Creating the CEV manifest in the Amazon RDS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCustomDBEngineVersionRequest withManifest(String manifest) {
setManifest(manifest);
return this;
}
/**
* @return
*/
public java.util.List
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*