public ReplicationRule withDestinationConfig(
            ReplicationDestinationConfig destinationConfig) {
        setDestinationConfig(destinationConfig);
        return this;
    }
Sets the destination configuration for the replication rule.Returns the
updated object.

@throws IllegalArgumentException
            if the destinationConfig is null.
@return the updated {@link ReplicationRule} object.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ReplicationRule.java