public ReplicationRule getRule(String id) {
        return rules.get(id);
    }
Returns the replication rule for the given rule id.

@param id
           the unique identifier representing a rule in the replication
           configuration.
@return the replication rule for the given rule id.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/BucketReplicationConfiguration.java