Class Branch

java.lang.Object
software.amazon.awssdk.services.rds.model.Branch
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<Branch.Builder,Branch>

@Generated("software.amazon.awssdk:codegen") public final class Branch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Branch.Builder,Branch>

Contains the details of a branch of an Aurora PostgreSQL DB cluster.

This data type is used as a response element in the CreateBranch, DeleteBranch, and DescribeBranches actions.

See Also:
  • Method Details

    • branchArn

      public final String branchArn()

      The Amazon Resource Name (ARN) of the branch.

      Returns:
      The Amazon Resource Name (ARN) of the branch.
    • branchCreateTime

      public final Instant branchCreateTime()

      The time when the branch was created, in Universal Coordinated Time (UTC).

      Returns:
      The time when the branch was created, in Universal Coordinated Time (UTC).
    • branchExpiryTime

      public final Instant branchExpiryTime()

      The time when the branch expires, in Universal Coordinated Time (UTC). Amazon RDS deletes the branch at this time.

      Returns:
      The time when the branch expires, in Universal Coordinated Time (UTC). Amazon RDS deletes the branch at this time.
    • branchName

      public final String branchName()

      The name of the branch.

      Returns:
      The name of the branch.
    • branchResourceId

      public final String branchResourceId()

      The Amazon Web Services Region-unique, immutable identifier of the branch.

      Returns:
      The Amazon Web Services Region-unique, immutable identifier of the branch.
    • dbClusterParameterGroup

      public final String dbClusterParameterGroup()

      The name of the DB cluster parameter group of the branch.

      Returns:
      The name of the DB cluster parameter group of the branch.
    • dbSubnetGroup

      public final String dbSubnetGroup()

      The name of the DB subnet group of the branch.

      Returns:
      The name of the DB subnet group of the branch.
    • endpoint

      public final String endpoint()

      The DNS address of the branch. Connect to the branch at this address.

      Returns:
      The DNS address of the branch. Connect to the branch at this address.
    • engine

      public final String engine()

      The database engine of the branch.

      Returns:
      The database engine of the branch.
    • engineVersion

      public final String engineVersion()

      The version of the database engine of the branch.

      Returns:
      The version of the database engine of the branch.
    • httpEndpointEnabled

      public final Boolean httpEndpointEnabled()

      Indicates whether you can use the RDS Data API through the HTTP endpoint of the branch.

      Returns:
      Indicates whether you can use the RDS Data API through the HTTP endpoint of the branch.
    • iamDatabaseAuthenticationEnabled

      public final Boolean iamDatabaseAuthenticationEnabled()

      Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled for the branch.

      Returns:
      Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled for the branch.
    • internetAccessGatewayEnabled

      public final Boolean internetAccessGatewayEnabled()

      Indicates whether the branch has internet-based connectivity enabled through an internet access gateway. With an internet access gateway, you connect to the branch over the internet without a VPC.

      Returns:
      Indicates whether the branch has internet-based connectivity enabled through an internet access gateway. With an internet access gateway, you connect to the branch over the internet without a VPC.
    • port

      public final Integer port()

      The port that the branch listens on.

      Returns:
      The port that the branch listens on.
    • rootArn

      public final String rootArn()

      The Amazon Resource Name (ARN) of the root DB cluster of the branch.

      Returns:
      The Amazon Resource Name (ARN) of the root DB cluster of the branch.
    • scalingConfiguration

      public final BranchScalingConfiguration scalingConfiguration()

      The capacity settings of the branch.

      Returns:
      The capacity settings of the branch.
    • sourceArn

      public final String sourceArn()

      The Amazon Resource Name (ARN) of the source of the branch: the root DB cluster, or the branch that the branch was created from.

      Returns:
      The Amazon Resource Name (ARN) of the source of the branch: the root DB cluster, or the branch that the branch was created from.
    • status

      public final BranchStatus status()

      The status of the branch.

      The branch status can be one of the following values:

      creating

      The branch is being created.

      available

      The branch is ready for use.

      deleting

      The branch is being deleted.

      failed

      The branch couldn't be created.

      insufficient-capacity

      The branch couldn't be created because there wasn't enough capacity. Delete the branch and try again later.

      incompatible-network

      The branch couldn't be created because of the network configuration of the source DB cluster.

      If the service returns an enum value that is not available in the current SDK version, status will return BranchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the branch.

      The branch status can be one of the following values:

      creating

      The branch is being created.

      available

      The branch is ready for use.

      deleting

      The branch is being deleted.

      failed

      The branch couldn't be created.

      insufficient-capacity

      The branch couldn't be created because there wasn't enough capacity. Delete the branch and try again later.

      incompatible-network

      The branch couldn't be created because of the network configuration of the source DB cluster.

      See Also:
    • statusAsString

      public final String statusAsString()

      The status of the branch.

      The branch status can be one of the following values:

      creating

      The branch is being created.

      available

      The branch is ready for use.

      deleting

      The branch is being deleted.

      failed

      The branch couldn't be created.

      insufficient-capacity

      The branch couldn't be created because there wasn't enough capacity. Delete the branch and try again later.

      incompatible-network

      The branch couldn't be created because of the network configuration of the source DB cluster.

      If the service returns an enum value that is not available in the current SDK version, status will return BranchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the branch.

      The branch status can be one of the following values:

      creating

      The branch is being created.

      available

      The branch is ready for use.

      deleting

      The branch is being deleted.

      failed

      The branch couldn't be created.

      insufficient-capacity

      The branch couldn't be created because there wasn't enough capacity. Delete the branch and try again later.

      incompatible-network

      The branch couldn't be created because of the network configuration of the source DB cluster.

      See Also:
    • hasTagList

      public final boolean hasTagList()
      For responses, this returns true if the service returned a value for the TagList property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • tagList

      public final List<Tag> tagList()

      The tags assigned to the branch.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTagList() method.

      Returns:
      The tags assigned to the branch.
    • ttlSeconds

      public final Long ttlSeconds()

      The time to live (TTL) of the branch, in seconds after the branch was created.

      Returns:
      The time to live (TTL) of the branch, in seconds after the branch was created.
    • hasVpcSecurityGroups

      public final boolean hasVpcSecurityGroups()
      For responses, this returns true if the service returned a value for the VpcSecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • vpcSecurityGroups

      public final List<VpcSecurityGroupMembership> vpcSecurityGroups()

      The VPC security groups of the branch.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasVpcSecurityGroups() method.

      Returns:
      The VPC security groups of the branch.
    • toBuilder

      public Branch.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<Branch.Builder,Branch>
      Returns:
      a builder for type T
    • builder

      public static Branch.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Branch.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.