Class IncreaseReplicaCountRequest

    • Method Detail

      • replicationGroupId

        public final String replicationGroupId()

        The id of the replication group to which you want to add replica nodes.

        Returns:
        The id of the replication group to which you want to add replica nodes.
      • newReplicaCount

        public final Integer newReplicaCount()

        The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.

        Returns:
        The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
      • hasReplicaConfiguration

        public final boolean hasReplicaConfiguration()
        For responses, this returns true if the service returned a value for the ReplicaConfiguration 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.
      • replicaConfiguration

        public final List<ConfigureShard> replicaConfiguration()

        A list of ConfigureShard objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.

        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 hasReplicaConfiguration() method.

        Returns:
        A list of ConfigureShard objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.
      • applyImmediately

        public final Boolean applyImmediately()

        If True, the number of replica nodes is increased immediately. ApplyImmediately=False is not currently supported.

        Returns:
        If True, the number of replica nodes is increased immediately. ApplyImmediately=False is not currently supported.
      • 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