Class CfnDBInstanceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstanceMixinProps>
- Enclosing interface:
CfnDBInstanceMixinProps
CfnDBInstanceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAllowMajorVersionUpgrade()allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAllowMajorVersionUpgrade()autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAutoMinorVersionUpgrade()autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAutoMinorVersionUpgrade()availabilityZone(String availabilityZone) Sets the value ofCfnDBInstanceMixinProps.getAvailabilityZone()build()Builds the configured instance.dbClusterIdentifier(String dbClusterIdentifier) Sets the value ofCfnDBInstanceMixinProps.getDbClusterIdentifier()dbInstanceClass(String dbInstanceClass) Sets the value ofCfnDBInstanceMixinProps.getDbInstanceClass()dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnDBInstanceMixinProps.getDbInstanceIdentifier()dbParameterGroupName(String dbParameterGroupName) Sets the value ofCfnDBInstanceMixinProps.getDbParameterGroupName()dbSnapshotIdentifier(String dbSnapshotIdentifier) Deprecated.this property has been deprecateddbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBInstanceMixinProps.getDbSubnetGroupName()preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnDBInstanceMixinProps.getPreferredMaintenanceWindow()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnDBInstanceMixinProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnDBInstanceMixinProps.getPubliclyAccessible()Sets the value ofCfnDBInstanceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnDBInstanceMixinProps.Builder allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAllowMajorVersionUpgrade()- Parameters:
allowMajorVersionUpgrade- Indicates that major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.When you change this parameter for an existing DB cluster, CloudFormation will replace your existing DB cluster with a new, empty one that uses the engine version you specified.
- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnDBInstanceMixinProps.Builder allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAllowMajorVersionUpgrade()- Parameters:
allowMajorVersionUpgrade- Indicates that major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.When you change this parameter for an existing DB cluster, CloudFormation will replace your existing DB cluster with a new, empty one that uses the engine version you specified.
- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnDBInstanceMixinProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- Indicates that minor version patches are applied automatically. When updating this property, some interruptions may occur.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnDBInstanceMixinProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnDBInstanceMixinProps.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- Indicates that minor version patches are applied automatically. When updating this property, some interruptions may occur.- Returns:
this
-
availabilityZone
Sets the value ofCfnDBInstanceMixinProps.getAvailabilityZone()- Parameters:
availabilityZone- Specifies the name of the Availability Zone the DB instance is located in.- Returns:
this
-
dbClusterIdentifier
@Stability(Stable) public CfnDBInstanceMixinProps.Builder dbClusterIdentifier(String dbClusterIdentifier) Sets the value ofCfnDBInstanceMixinProps.getDbClusterIdentifier()- Parameters:
dbClusterIdentifier- If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.- Returns:
this
-
dbInstanceClass
Sets the value ofCfnDBInstanceMixinProps.getDbInstanceClass()- Parameters:
dbInstanceClass- Contains the name of the compute and memory capacity class of the DB instance. If you update this property, some interruptions may occur.- Returns:
this
-
dbInstanceIdentifier
@Stability(Stable) public CfnDBInstanceMixinProps.Builder dbInstanceIdentifier(String dbInstanceIdentifier) Sets the value ofCfnDBInstanceMixinProps.getDbInstanceIdentifier()- Parameters:
dbInstanceIdentifier- Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.- Returns:
this
-
dbParameterGroupName
@Stability(Stable) public CfnDBInstanceMixinProps.Builder dbParameterGroupName(String dbParameterGroupName) Sets the value ofCfnDBInstanceMixinProps.getDbParameterGroupName()- Parameters:
dbParameterGroupName- The name of an existing DB parameter group or a reference to an AWS::Neptune::DBParameterGroup resource created in the template. If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.- Returns:
this
-
dbSnapshotIdentifier
@Stability(Deprecated) @Deprecated public CfnDBInstanceMixinProps.Builder dbSnapshotIdentifier(String dbSnapshotIdentifier) Deprecated.this property has been deprecatedSets the value ofCfnDBInstanceMixinProps.getDbSnapshotIdentifier()- Parameters:
dbSnapshotIdentifier- This parameter is not supported.AWS::Neptune::DBInstancedoes not support restoring from snapshots.AWS::Neptune::DBClusterdoes support restoring from snapshots.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public CfnDBInstanceMixinProps.Builder dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBInstanceMixinProps.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- A DB subnet group to associate with the DB instance. If you update this value, the new subnet group must be a subnet group in a new virtual private cloud (VPC).- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnDBInstanceMixinProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnDBInstanceMixinProps.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnDBInstanceMixinProps.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnDBInstanceMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Indicates whether the DB instance is publicly accessible. When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.
- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnDBInstanceMixinProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnDBInstanceMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Indicates whether the DB instance is publicly accessible. When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.
- Returns:
this
-
tags
Sets the value ofCfnDBInstanceMixinProps.getTags()- Parameters:
tags- An arbitrary set of tags (key-value pairs) for this DB instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBInstanceMixinProps>- Returns:
- a new instance of
CfnDBInstanceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-