Interface DBSnapshot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DBSnapshot.Builder,DBSnapshot>,SdkBuilder<DBSnapshot.Builder,DBSnapshot>,SdkPojo
- Enclosing class:
- DBSnapshot
public static interface DBSnapshot.Builder extends SdkPojo, CopyableBuilder<DBSnapshot.Builder,DBSnapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DBSnapshot.BuilderallocatedStorage(Integer allocatedStorage)Specifies the allocated storage size in gibibytes (GiB).DBSnapshot.BuilderavailabilityZone(String availabilityZone)Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.DBSnapshot.BuilderdbInstanceIdentifier(String dbInstanceIdentifier)Specifies the DB instance identifier of the DB instance this DB snapshot was created from.DBSnapshot.BuilderdbiResourceId(String dbiResourceId)The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.DBSnapshot.BuilderdbSnapshotArn(String dbSnapshotArn)The Amazon Resource Name (ARN) for the DB snapshot.DBSnapshot.BuilderdbSnapshotIdentifier(String dbSnapshotIdentifier)Specifies the identifier for the DB snapshot.DBSnapshot.BuilderdbSystemId(String dbSystemId)The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files.DBSnapshot.BuilderdedicatedLogVolume(Boolean dedicatedLogVolume)Indicates whether the DB instance has a dedicated log volume (DLV) enabled.DBSnapshot.Builderencrypted(Boolean encrypted)Indicates whether the DB snapshot is encrypted.DBSnapshot.Builderengine(String engine)Specifies the name of the database engine.DBSnapshot.BuilderengineVersion(String engineVersion)Specifies the version of the database engine.DBSnapshot.BuilderiamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled)Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.DBSnapshot.BuilderinstanceCreateTime(Instant instanceCreateTime)Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.DBSnapshot.Builderiops(Integer iops)Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.DBSnapshot.BuilderkmsKeyId(String kmsKeyId)IfEncryptedis true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.DBSnapshot.BuilderlicenseModel(String licenseModel)License model information for the restored DB instance.DBSnapshot.BuildermasterUsername(String masterUsername)Provides the master username for the DB snapshot.DBSnapshot.BuildermultiTenant(Boolean multiTenant)Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).DBSnapshot.BuilderoptionGroupName(String optionGroupName)Provides the option group name for the DB snapshot.DBSnapshot.BuilderoriginalSnapshotCreateTime(Instant originalSnapshotCreateTime)Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC).DBSnapshot.BuilderpercentProgress(Integer percentProgress)The percentage of the estimated data that has been transferred.DBSnapshot.Builderport(Integer port)Specifies the port that the database engine was listening on at the time of the snapshot.DBSnapshot.BuilderprocessorFeatures(Collection<ProcessorFeature> processorFeatures)The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.DBSnapshot.BuilderprocessorFeatures(Consumer<ProcessorFeature.Builder>... processorFeatures)The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.DBSnapshot.BuilderprocessorFeatures(ProcessorFeature... processorFeatures)The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.DBSnapshot.BuildersnapshotCreateTime(Instant snapshotCreateTime)Specifies when the snapshot was taken in Coordinated Universal Time (UTC).DBSnapshot.BuildersnapshotDatabaseTime(Instant snapshotDatabaseTime)The timestamp of the most recent transaction applied to the database that you're backing up.DBSnapshot.BuildersnapshotTarget(String snapshotTarget)Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.DBSnapshot.BuildersnapshotType(String snapshotType)Provides the type of the DB snapshot.DBSnapshot.BuildersourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from.DBSnapshot.BuildersourceRegion(String sourceRegion)The Amazon Web Services Region that the DB snapshot was created in or copied from.DBSnapshot.Builderstatus(String status)Specifies the status of this DB snapshot.DBSnapshot.BuilderstorageThroughput(Integer storageThroughput)Specifies the storage throughput for the DB snapshot.DBSnapshot.BuilderstorageType(String storageType)Specifies the storage type associated with DB snapshot.DBSnapshot.BuildertagList(Collection<Tag> tagList)Sets the value of the TagList property for this object.DBSnapshot.BuildertagList(Consumer<Tag.Builder>... tagList)Sets the value of the TagList property for this object.DBSnapshot.BuildertagList(Tag... tagList)Sets the value of the TagList property for this object.DBSnapshot.BuildertdeCredentialArn(String tdeCredentialArn)The ARN from the key store with which to associate the instance for TDE encryption.DBSnapshot.Buildertimezone(String timezone)The time zone of the DB snapshot.DBSnapshot.BuildervpcId(String vpcId)Provides the VPC ID associated with the DB snapshot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
dbSnapshotIdentifier
DBSnapshot.Builder dbSnapshotIdentifier(String dbSnapshotIdentifier)
Specifies the identifier for the DB snapshot.
- Parameters:
dbSnapshotIdentifier- Specifies the identifier for the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbInstanceIdentifier
DBSnapshot.Builder dbInstanceIdentifier(String dbInstanceIdentifier)
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
- Parameters:
dbInstanceIdentifier- Specifies the DB instance identifier of the DB instance this DB snapshot was created from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCreateTime
DBSnapshot.Builder snapshotCreateTime(Instant snapshotCreateTime)
Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.
- Parameters:
snapshotCreateTime- Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engine
DBSnapshot.Builder engine(String engine)
Specifies the name of the database engine.
- Parameters:
engine- Specifies the name of the database engine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocatedStorage
DBSnapshot.Builder allocatedStorage(Integer allocatedStorage)
Specifies the allocated storage size in gibibytes (GiB).
- Parameters:
allocatedStorage- Specifies the allocated storage size in gibibytes (GiB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
DBSnapshot.Builder status(String status)
Specifies the status of this DB snapshot.
- Parameters:
status- Specifies the status of this DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
port
DBSnapshot.Builder port(Integer port)
Specifies the port that the database engine was listening on at the time of the snapshot.
- Parameters:
port- Specifies the port that the database engine was listening on at the time of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
DBSnapshot.Builder availabilityZone(String availabilityZone)
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
- Parameters:
availabilityZone- Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
DBSnapshot.Builder vpcId(String vpcId)
Provides the VPC ID associated with the DB snapshot.
- Parameters:
vpcId- Provides the VPC ID associated with the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCreateTime
DBSnapshot.Builder instanceCreateTime(Instant instanceCreateTime)
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
- Parameters:
instanceCreateTime- Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
masterUsername
DBSnapshot.Builder masterUsername(String masterUsername)
Provides the master username for the DB snapshot.
- Parameters:
masterUsername- Provides the master username for the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
DBSnapshot.Builder engineVersion(String engineVersion)
Specifies the version of the database engine.
- Parameters:
engineVersion- Specifies the version of the database engine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseModel
DBSnapshot.Builder licenseModel(String licenseModel)
License model information for the restored DB instance.
- Parameters:
licenseModel- License model information for the restored DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotType
DBSnapshot.Builder snapshotType(String snapshotType)
Provides the type of the DB snapshot.
- Parameters:
snapshotType- Provides the type of the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iops
DBSnapshot.Builder iops(Integer iops)
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
- Parameters:
iops- Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionGroupName
DBSnapshot.Builder optionGroupName(String optionGroupName)
Provides the option group name for the DB snapshot.
- Parameters:
optionGroupName- Provides the option group name for the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
percentProgress
DBSnapshot.Builder percentProgress(Integer percentProgress)
The percentage of the estimated data that has been transferred.
- Parameters:
percentProgress- The percentage of the estimated data that has been transferred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRegion
DBSnapshot.Builder sourceRegion(String sourceRegion)
The Amazon Web Services Region that the DB snapshot was created in or copied from.
- Parameters:
sourceRegion- The Amazon Web Services Region that the DB snapshot was created in or copied from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDBSnapshotIdentifier
DBSnapshot.Builder sourceDBSnapshotIdentifier(String sourceDBSnapshotIdentifier)
The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.
- Parameters:
sourceDBSnapshotIdentifier- The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageType
DBSnapshot.Builder storageType(String storageType)
Specifies the storage type associated with DB snapshot.
- Parameters:
storageType- Specifies the storage type associated with DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tdeCredentialArn
DBSnapshot.Builder tdeCredentialArn(String tdeCredentialArn)
The ARN from the key store with which to associate the instance for TDE encryption.
- Parameters:
tdeCredentialArn- The ARN from the key store with which to associate the instance for TDE encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
DBSnapshot.Builder encrypted(Boolean encrypted)
Indicates whether the DB snapshot is encrypted.
- Parameters:
encrypted- Indicates whether the DB snapshot is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
DBSnapshot.Builder kmsKeyId(String kmsKeyId)
If
Encryptedis true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
- Parameters:
kmsKeyId- IfEncryptedis true, the Amazon Web Services KMS key identifier for the encrypted DB snapshot.The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbSnapshotArn
DBSnapshot.Builder dbSnapshotArn(String dbSnapshotArn)
The Amazon Resource Name (ARN) for the DB snapshot.
- Parameters:
dbSnapshotArn- The Amazon Resource Name (ARN) for the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timezone
DBSnapshot.Builder timezone(String timezone)
The time zone of the DB snapshot. In most cases, the
Timezoneelement is empty.Timezonecontent appears only for snapshots taken from Microsoft SQL Server DB instances that were created with a time zone specified.- Parameters:
timezone- The time zone of the DB snapshot. In most cases, theTimezoneelement is empty.Timezonecontent appears only for snapshots taken from Microsoft SQL Server DB instances that were created with a time zone specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamDatabaseAuthenticationEnabled
DBSnapshot.Builder iamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled)
Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.
- Parameters:
iamDatabaseAuthenticationEnabled- Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
processorFeatures
DBSnapshot.Builder processorFeatures(Collection<ProcessorFeature> processorFeatures)
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.
- Parameters:
processorFeatures- The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
processorFeatures
DBSnapshot.Builder processorFeatures(ProcessorFeature... processorFeatures)
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.
- Parameters:
processorFeatures- The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
processorFeatures
DBSnapshot.Builder processorFeatures(Consumer<ProcessorFeature.Builder>... processorFeatures)
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance when the DB snapshot was created.
This is a convenience method that creates an instance of theProcessorFeature.Builderavoiding the need to create one manually viaProcessorFeature.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#processorFeatures(List.) - Parameters:
processorFeatures- a consumer that will call methods onProcessorFeature.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#processorFeatures(java.util.Collection)
-
dbiResourceId
DBSnapshot.Builder dbiResourceId(String dbiResourceId)
The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.
- Parameters:
dbiResourceId- The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
DBSnapshot.Builder tagList(Collection<Tag> tagList)
Sets the value of the TagList property for this object.- Parameters:
tagList- The new value for the TagList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
DBSnapshot.Builder tagList(Tag... tagList)
Sets the value of the TagList property for this object.- Parameters:
tagList- The new value for the TagList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
DBSnapshot.Builder tagList(Consumer<Tag.Builder>... tagList)
Sets the value of the TagList property for this object. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagList(List.) - Parameters:
tagList- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagList(java.util.Collection)
-
originalSnapshotCreateTime
DBSnapshot.Builder originalSnapshotCreateTime(Instant originalSnapshotCreateTime)
Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.
- Parameters:
originalSnapshotCreateTime- Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotDatabaseTime
DBSnapshot.Builder snapshotDatabaseTime(Instant snapshotDatabaseTime)
The timestamp of the most recent transaction applied to the database that you're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime is the most recent transaction in the restored DB instance. In contrast, originalSnapshotCreateTime specifies the system time that the snapshot completed.
If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.
- Parameters:
snapshotDatabaseTime- The timestamp of the most recent transaction applied to the database that you're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime is the most recent transaction in the restored DB instance. In contrast, originalSnapshotCreateTime specifies the system time that the snapshot completed.If you back up a read replica, you can determine the replica lag by comparing SnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime is two hours later than SnapshotDatabaseTime, then the replica lag is two hours.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotTarget
DBSnapshot.Builder snapshotTarget(String snapshotTarget)
Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.
- Parameters:
snapshotTarget- Specifies where manual snapshots are stored: Amazon Web Services Outposts or the Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageThroughput
DBSnapshot.Builder storageThroughput(Integer storageThroughput)
Specifies the storage throughput for the DB snapshot.
- Parameters:
storageThroughput- Specifies the storage throughput for the DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbSystemId
DBSnapshot.Builder dbSystemId(String dbSystemId)
The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.
- Parameters:
dbSystemId- The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. The Oracle SID is also the name of your CDB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dedicatedLogVolume
DBSnapshot.Builder dedicatedLogVolume(Boolean dedicatedLogVolume)
Indicates whether the DB instance has a dedicated log volume (DLV) enabled.
- Parameters:
dedicatedLogVolume- Indicates whether the DB instance has a dedicated log volume (DLV) enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiTenant
DBSnapshot.Builder multiTenant(Boolean multiTenant)
Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
- Parameters:
multiTenant- Indicates whether the snapshot is of a DB instance using the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-